-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
EIP-4488 Prototype Implementation #23983
Conversation
@@ -156,6 +157,9 @@ const ( | |||
// up to half the consumed gas could be refunded. Redefined as 1/5th in EIP-3529 | |||
RefundQuotient uint64 = 2 | |||
RefundQuotientEIP3529 uint64 = 5 | |||
|
|||
TxDataBaseBlockCap uint64 = 1048576 // Base block cap for transaction calldata in bytes | |||
TxDataCapStipend uint64 = 300 // Per-tx cap stpiend for transaction calldata in bytes |
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.
TxDataCapStipend uint64 = 300 // Per-tx cap stpiend for transaction calldata in bytes | |
TxDataCapStipend uint64 = 300 // Per-tx cap stipend for transaction calldata in bytes |
@@ -127,3 +133,17 @@ func CalcGasLimit(parentGasLimit, desiredLimit uint64) uint64 { | |||
} | |||
return limit | |||
} | |||
|
|||
// VerifyCalldataCap calculates the total calldata size of the block's transactions and | |||
// verifies that it is below the cap introduced by EIP-XXXX |
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.
Why is this code using EIP4448 instead of EIPXXXX for variable names and comments?
This is getting very stale, I'm guessing there's not that much value in keeping this around anymore? |
draft PR for illustration purposes only