-
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: reduce size of excess_data_gas
to 64 bit
#7095
Conversation
✅ All reviewers have approved. |
excess_data_gas
to 64 bitexcess_data_gas
to 64 bit
568cb21
to
82af000
Compare
Approved in CL call 110 |
b703d35
82af000
to
b703d35
Compare
b703d35
to
f1c34e4
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.
All Reviewers Have Approved; Performing Automatic Merge...
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.
It seems like an oversight on my part in #5353 to make
excess_blobs
a 256 bit unsigned integer and it has propagated through the various changes until now. @karalabe noticed thatexcess_data_gas
will never even need more than a 64 bit unsigned integer. After 1500 blocks, the data fee ends up being around2**256
, which is obviously much larger than could possibly be paid.log2(1500*(MAX_DATA_GAS_PER_BLOCK - TARGET_DATA_GAS_PER_BLOCK)) = 28.5
, so 64 bit is fine.