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

feat: add eip 4844 blob tx type #3807

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

i-m-aditya
Copy link
Contributor

Fixes #3746

@i-m-aditya i-m-aditya requested a review from gakonst as a code owner July 16, 2023 15:01
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice,

we need to get rid of the clippy warning by making exporting it from the crate, see other tx type for ref

It'd be great to get some test cases from geth as well, there should exist some

@mattsse mattsse added the C-enhancement New feature or request label Jul 16, 2023
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

smol nit

mem::size_of::<u128>() + // value
self.access_list.size() + // access_list
self.input.len() + // input
self.blob_hashes.len() * mem::size_of::<H256>() + // blob hashes size
Copy link
Member

Choose a reason for hiding this comment

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

Should be capacity since it's a Vec

Suggested change
self.blob_hashes.len() * mem::size_of::<H256>() + // blob hashes size
self.blob_hashes.capacity() * mem::size_of::<H256>() + // blob hashes size

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #3807 (3f02e03) into main (b69a18d) will decrease coverage by 0.03%.
The diff coverage is 18.75%.

Impacted file tree graph

Impacted Files Coverage Δ
crates/primitives/src/lib.rs 100.00% <ø> (ø)
crates/primitives/src/transaction/mod.rs 82.22% <18.75%> (-0.96%) ⬇️

... and 10 files with indirect coverage changes

Flag Coverage Δ
integration-tests 15.56% <0.00%> (-0.01%) ⬇️
unit-tests 64.43% <18.75%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.44% <ø> (ø)
blockchain tree 83.02% <ø> (ø)
pipeline 89.66% <ø> (ø)
storage (db) 74.19% <ø> (ø)
trie 94.65% <ø> (ø)
txpool 46.00% <ø> (ø)
networking 77.63% <ø> (-0.05%) ⬇️
rpc 58.25% <ø> (-0.04%) ⬇️
consensus 64.94% <ø> (ø)
revm 33.68% <ø> (ø)
payload builder 6.61% <ø> (ø)
primitives 87.98% <18.75%> (-0.11%) ⬇️

@onbjerg onbjerg changed the title add eip 4844 blob tx type feat: add eip 4844 blob tx type Jul 19, 2023
Comment on lines +283 to +284
#[inline]
pub fn size(&self) -> usize {
Copy link
Member

Choose a reason for hiding this comment

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

@Rjected should we make this a trait?

Copy link
Member

Choose a reason for hiding this comment

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

yes, we should make this a trait, will open an issue

Copy link
Member

Choose a reason for hiding this comment

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

@mattsse mattsse enabled auto-merge July 24, 2023 18:01
Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

lgtm!

@mattsse mattsse added this pull request to the merge queue Jul 24, 2023
Merged via the queue into paradigmxyz:main with commit dd6dbfd Jul 24, 2023
merklefruit pushed a commit to op-rs/op-reth that referenced this pull request Jul 27, 2023
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add EIP-4844 blob transaction type
4 participants