Skip to content

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

Merged
hwwhww merged 3 commits intodevfrom
eip-4844-fee-ssz-fix
Nov 7, 2022
Merged

eip4844: update tx_peek_blob_versioned_hashes to match tx type from fee market update#3027
hwwhww merged 3 commits intodevfrom
eip-4844-fee-ssz-fix

Conversation

@protolambda
Copy link
Copy Markdown
Contributor

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

@protolambda protolambda force-pushed the eip-4844-fee-ssz-fix branch from 47a42af to 2d08dc5 Compare October 6, 2022 16:14
@hwwhww
Copy link
Copy Markdown
Contributor

hwwhww commented Oct 7, 2022

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

@hwwhww hwwhww added the deneb label Oct 7, 2022
@dgcoffman dgcoffman mentioned this pull request Oct 19, 2022
25 tasks
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants