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

eip4844: update tx_peek_blob_versioned_hashes to match tx type from fee market update #3027

Merged
merged 3 commits into from
Nov 7, 2022

Conversation

protolambda
Copy link
Collaborator

@protolambda protolambda commented Oct 5, 2022

Also see fee market update PR to EIP, specifically the change to BlobTransaction: ethereum/EIPs#5707

This 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 whole

For 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).

specs/eip4844/beacon-chain.md Outdated Show resolved Hide resolved
@hwwhww
Copy link
Contributor

hwwhww commented Oct 7, 2022

Maybe merge this PR after ethereum/EIPs#5707 is merged?

@hwwhww hwwhww added the Deneb was called: eip-4844 label Oct 7, 2022
@dgcoffman dgcoffman mentioned this pull request Oct 19, 2022
25 tasks
Copy link
Contributor

@Inphi Inphi left a 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.

@protolambda
Copy link
Collaborator Author

This PR is ready for final review, the BlobTransaction type matches that of the EIP PR that this previously depended on.

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

lgtm

@hwwhww hwwhww merged commit b7dfd5a into dev Nov 7, 2022
@hwwhww hwwhww deleted the eip-4844-fee-ssz-fix branch November 7, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deneb was called: eip-4844
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants