-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Update EIP-4844: add data_gas_used
to header
#7062
Conversation
✅ All reviewers have approved. |
data_gas_used
to headerdata_gas_used
to header
note, just an idea, wanted to see what it actually looked like to do this |
I find this easier to understand. (...I've lost track of how many times I've gotten confused over parent vs current block for gathering appropriate data for blob pricing in the current spec.) Not sure how we trade that off against requiring another header field though. |
IMO there is very little difference between adding one additional header field vs. two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is less confusing and error-prone.
972c95f
to
88b8355
Compare
88b8355
to
e8ae088
Compare
Had to rebase - changes should be the same though. |
a13bda1
to
939170c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good and clear! 👍
939170c
to
5245d43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some whitespace nitpicks, but LGTM.
Co-authored-by: Ansgar Dietrichs <adietrichs@gmail.com>
applied suggestions from @adietrichs, going to undraft now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Reviewers Have Approved; Performing Automatic Merge...
Implement ethereum/EIPs#7062 and ethereum/EIPs#7095. Pick up ledgerwatch/erigon-lib#1006.
At the moment, EIP-4844 uses the
excess_data_gas
from a block's parent header in order to determine the data gas price of transactions in the current block. This is a bit different than EIP-1559 which first ensures the header'sbase_fee
is correctly derived from the parent header, then proceeds to use that value for further gas price calculation.tldr;
excess_data_gas
is pricing for next block, whilebase_fee
is pricing for current block -- this PR aligns them so that both represent pricing information for the current block