Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'diff not match' #315

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Fix 'diff not match' #315

merged 1 commit into from
Aug 29, 2024

Conversation

syntrust
Copy link
Collaborator

@syntrust syntrust commented Aug 27, 2024

Addressing #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

@syntrust syntrust merged commit 2eac50b into main Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants