Skip to content

remove geth dependency when extracting versioned hash list from a serialized blob tx#23

Merged
roberto-bayardo merged 1 commit intoeip-4844from
roberto-bayardo/extract-hashes
Oct 5, 2022
Merged

remove geth dependency when extracting versioned hash list from a serialized blob tx#23
roberto-bayardo merged 1 commit intoeip-4844from
roberto-bayardo/extract-hashes

Conversation

@roberto-bayardo
Copy link
Collaborator

This implementation reflects the blob tx layout from the recent eip-4844 fee market updates in ethereum/EIPs#5707

@roberto-bayardo roberto-bayardo requested a review from Inphi October 5, 2022 20:14
@roberto-bayardo roberto-bayardo force-pushed the roberto-bayardo/extract-hashes branch from 38cdc92 to 187d5ce Compare October 5, 2022 20:17
// 258: start of the versioned hash offset within "message" (4 bytes)
// 262-: rest of the tx following message
//
// TODO: unit tests, remove dependency on github.com/protolambda/ztyp
Copy link
Owner

@Inphi Inphi Oct 5, 2022

Choose a reason for hiding this comment

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

btw, you can test using:

bazel test //beacon-chain/sync:go_default_test --test_filter='TestValidateBeaconBlockPubSub_ValidBlobKzgs'

or if you don't have bazel:

go test ./beacon-chain/sync/... -run 'TestValidateBeaconBlockPubSub.*'

Copy link
Owner

Choose a reason for hiding this comment

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

though a specific unit test for this function would also be desired.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks! The test seems to also rely on geth so it fails until I point it at my local geth repo, which I guess confirms it's WAI!

@roberto-bayardo roberto-bayardo merged commit 35ef487 into eip-4844 Oct 5, 2022
@roberto-bayardo roberto-bayardo deleted the roberto-bayardo/extract-hashes branch October 5, 2022 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments