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

EIP-4488 Prototype Implementation #23983

Closed
wants to merge 5 commits into from
Closed

Conversation

adietrichs
Copy link
Member

draft PR for illustration purposes only

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Member

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?

@holiman
Copy link
Contributor

holiman commented Nov 22, 2022

This is getting very stale, I'm guessing there's not that much value in keeping this around anymore?

@holiman holiman closed this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants