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

bug(consensus): Remove mixHash zero check after merge #652

Merged
merged 2 commits into from
Dec 29, 2022

Conversation

rakita
Copy link
Collaborator

@rakita rakita commented Dec 29, 2022

Followed this EIP where mixHash should be zero: https://eips.ethereum.org/EIPS/eip-3675#block-structure

but in follow-up EIP mixHash after Paris is set from CL to prevrandao and is replacing difficulty opcode value: https://eips.ethereum.org/EIPS/eip-4399#using-mixhash-field-instead-of-difficulty

so this check should be removed.

@rakita rakita requested a review from gakonst as a code owner December 29, 2022 15:00
@mattsse mattsse added C-bug An unexpected or incorrect behavior A-consensus Related to the consensus engine labels Dec 29, 2022
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mattsse mattsse merged commit c62574b into main Dec 29, 2022
@mattsse mattsse deleted the rakita/rm_mix_hash_zero_check branch December 29, 2022 15:14
@rakita
Copy link
Collaborator Author

rakita commented Dec 29, 2022

cross-referencing it, as it is first reported here: #650

@gakonst
Copy link
Member

gakonst commented Dec 29, 2022

Should this check still exist for pre merge / non PoS chains?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consensus Related to the consensus engine C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants