ethstorage / es-node

Golang implementation of the EthStorage node.
Other
1.15k stars 77 forks source link

Fix 'diff not match' #315

Closed syntrust closed 2 months ago

syntrust commented 2 months ago

Addressing https://github.com/ethstorage/es-node/issues/304.

The current expectedDiff() in es-node differs from the implementation in MiningLib.sol, leading to rare cases where the computed difficulty does not match.

The unit test utilizes actual input data including previously failed cases.

reference:

image