Skip to content

feat: more blobtx functions#3943

Merged
mattsse merged 4 commits intomainfrom
matt/add-eip4844-tx-fns
Jul 27, 2023
Merged

feat: more blobtx functions#3943
mattsse merged 4 commits intomainfrom
matt/add-eip4844-tx-fns

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 27, 2023

add some missing functions for eip4844

@mattsse mattsse requested a review from gakonst as a code owner July 27, 2023 06:55
@mattsse mattsse added C-enhancement New feature or request M-eip This change relates to the implementation of an EIP labels Jul 27, 2023
@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #3943 (7654314) into main (72ab361) will decrease coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/primitives/src/transaction/mod.rs 81.09% <0.00%> (-1.13%) ⬇️

... and 8 files with indirect coverage changes

Flag Coverage Δ
integration-tests 15.55% <0.00%> (+<0.01%) ⬆️
unit-tests 64.54% <0.00%> (-0.02%) ⬇️

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

Components Coverage Δ
reth binary 27.18% <ø> (ø)
blockchain tree 83.04% <ø> (ø)
pipeline 89.82% <ø> (ø)
storage (db) 74.29% <ø> (ø)
trie 94.70% <ø> (ø)
txpool 46.56% <ø> (+0.56%) ⬆️
networking 77.69% <ø> (+0.03%) ⬆️
rpc 58.74% <ø> (-0.12%) ⬇️
consensus 64.46% <ø> (ø)
revm 33.68% <ø> (ø)
payload builder 6.61% <ø> (ø)
primitives 87.81% <0.00%> (-0.14%) ⬇️

@rkrasiuk rkrasiuk added the E-cancun Related to the Cancun network upgrade label Jul 27, 2023
Some(base_fee) => {
// if the tip is greater than the max priority fee per gas, set it to the max
// priority fee per gas + base fee
let tip = self.max_fee_per_gas - base_fee as u128;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this always safe? would we mostly call this fn in blobpool after validation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh, actually no, this should be saturated sub

will fix separately, because this also affects eip1559

Copy link
Collaborator Author

@mattsse mattsse Jul 27, 2023

Choose a reason for hiding this comment

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

@mattsse mattsse requested a review from rkrasiuk July 27, 2023 08:55
Copy link
Contributor

@rkrasiuk rkrasiuk 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 27, 2023
Merged via the queue into main with commit 0147e50 Jul 27, 2023
@mattsse mattsse deleted the matt/add-eip4844-tx-fns branch July 27, 2023 10:06
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 E-cancun Related to the Cancun network upgrade M-eip This change relates to the implementation of an EIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants