You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reconstructing a solved block for the in-progress NiceHash implementation
isn't going according to plan. I've been getting work submissions from the service but haven't been able to reconstruct blocks successfully. NiceHash support isn't being forthcoming either. I've been deconstructing work from their service instead to spot differences in implementations an I think I found it.
These work notifications were taking around the same time, this is is work is from NiceHash's decred service,
2021-01-27 14:07:48.234 [DBG] MN: message is {"id":null,"method":"mining.notify","params":["00000000fa36e5d9","845cb9c2ab5208d3be1b15021fb14e9c3fdf431b2a22c0c30000000000000000","3c78b309ae3e64f890891adf9cf254ea17a7ea760a556393cab5ec8dbfb64297ab3c5d70249a560a84562d852e4aed1d90e1d90ed9d501b546f7698f5761ac220100daca66b82e30050000003ea300004a3d2b18c67546de030000002afd0700380c0000ae73116000000000","07000000",[],"07000000","182b3d4a","601173ae",true]}
params[2], which is a concatenation starting from the merkleroot to the Nonce of the block header in the work notification, is the interesting bit here, which is data[72,288], they are identical (expected difference with the timestamp) except for the merkleroot and stakeroot. It seems NiceHash is wrongly calculating the merkleroot and stakeroot instead of using what's already provided in the work submissions.
Reconstructing a solved block for the in-progress NiceHash implementation
isn't going according to plan. I've been getting work submissions from the service but haven't been able to reconstruct blocks successfully. NiceHash support isn't being forthcoming either. I've been deconstructing work from their service instead to spot differences in implementations an I think I found it.
These work notifications were taking around the same time, this is is work is from NiceHash's decred service,
and this is from my decred node.
params[2]
, which is a concatenation starting from the merkleroot to the Nonce of the block header in the work notification, is the interesting bit here, which isdata[72,288]
, they are identical (expected difference with the timestamp) except for the merkleroot and stakeroot. It seems NiceHash is wrongly calculating the merkleroot and stakeroot instead of using what's already provided in the work submissions.Here is
params[2]
breakdown into its parts:The referenced block is https://explorer.dcrdata.org/block/00000000000000002a22c0c33fdf431b1fb14e9cbe1b1502ab5208d3845cb9c2.
I'm still tinkering, will update this issue if anything else of note is discovered. Any suggestions welcome.
The text was updated successfully, but these errors were encountered: