-
Notifications
You must be signed in to change notification settings - Fork 1k
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
eip4844: update tx_peek_blob_versioned_hashes to match tx type from fee market update #3027
Conversation
…ined in EIP PR 5707 (fee market update)
47a42af
to
2d08dc5
Compare
Maybe merge this PR after ethereum/EIPs#5707 is merged? |
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.
good to go as soon as ethereum/EIPs#5707 is merged.
This PR is ready for final review, the |
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
Also see fee market update PR to EIP, specifically the change to
BlobTransaction
: ethereum/EIPs#5707This PR simply updates the offsets used in
tx_peek_blob_versioned_hashes
to match again.If we pulled in the EIP type definition then we could have some test that the definition is correct.We actually do have a full definition of it in the testing code. Updated that, so now the tests should be able to pass.And added a unit test for the
tx_peek_blob_versioned_hashes
function as a wholeFor now I updated the original gist file that computes the offset numbers: https://gist.github.com/protolambda/23bd106b66f6d4bb854ce46044aa3ca3
Thanks to Mofi and Roberto for reminding me of the possible tx type change effects on CL: the prysm code uses the full type definition instead of the optimized offset function, but either way the CL needs to reflect the EIP PR (when it's merged).