-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: add checks for hardfork-specific fields to ensure_well_formed_payload #7993
fix: add checks for hardfork-specific fields to ensure_well_formed_payload #7993
Conversation
0463640
to
7407703
Compare
I initially added checks for all the conditions but needed to remove these bc of failing tests:
|
be74024
to
d1f6972
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
can include or wait for new as_ref fn
required for foundry-rs/foundry#7867 also includes new fn for paradigmxyz/reth#7993 cc @fgimenez
cool thx, already proposed bump alloy here #8118 |
d1f6972
to
466dd78
Compare
ok rebased and already using cancun_fields.as_ref |
Adds checks to
ensure_well_formed_payload()
to ensure that the Cancun specific fields fields areNone
before Cancun andSome()
afterwards.Additionally, adds checks for the Shanghai fork to ensure that withdrawals are not included before this timestamp and are included afterwards.
Also ensure
cancun_fields.fields
isNone
before Cancun andSome()
afterwards.