-
Notifications
You must be signed in to change notification settings - Fork 574
Dynamic EIP-1559 params setup #1989
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1989 +/- ##
===========================================
+ Coverage 48.25% 49.07% +0.82%
===========================================
Files 843 844 +1
Lines 144648 145299 +651
===========================================
+ Hits 69793 71300 +1507
+ Misses 70268 69284 -984
- Partials 4587 4715 +128
... and 39 files with indirect coverage changes
🚀 New features to boost your workflow:
|
c27bfe8 to
cab29b1
Compare
|
@claude Please can you do a thorough review of this change, highlighting any potential safety issues, bugs or edge-cases. |
|
Claude finished @adamdossa's task in 1m 49s —— View job Reviewing PR #1989: Dynamic EIP-1559 params setup
SummaryThis PR introduces dynamic configuration of EIP-1559 parameters ( Safety Concerns1. Removal of Base Fee Validation is a Critical Consensus Change
|
| Priority | Issue | Recommendation |
|---|---|---|
| High | Base fee validation removed | Document threat model; consider minimum bounds |
| High | Zero base fee allowed | Consider enforcing minimum base fee |
| Medium | No startup validation | Add validation in buildEth for invalid values |
| Medium | Silent fallbacks | Consider failing loudly on misconfiguration |
| Low | Integer overflow potential | Add overflow check or document constraints |
Overall, the code is well-structured with good test coverage, but the removal of base fee validation is a significant trust shift that should be carefully considered from a network security perspective.
cffls
left a comment
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 overall. If possible, could you add an integration test (tests/bor/bor_test.go) that simulates the scenario where the BP changes these parameters at a certain block and the block still get accepted by a validator?
|
cffls
left a comment
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.
@claude Can you review this PR, focusing on safety and performance? Provide a summary as a comment highlighting any concerns related to these changes.
|
Claude finished @lucca30's task in 1m 29s —— View job Reviewing PR #1989: Dynamic EIP-1559 params setup
SummaryThis PR introduces dynamic configuration of EIP-1559 parameters ( Safety Analysis✅ Strengths
Addressing @cffls's QuestionQ: Is it possible for a BP to set values resulting in >5% base fee change? A: No - Even with extreme parameter values, the 5% cap is enforced:
The test Potential Concerns
|
| Area | Coverage | Notes |
|---|---|---|
| Boundary enforcement | ✅ Excellent | Multiple test cases for increase/decrease |
| Aggressive parameters | ✅ Excellent | Tests denominator=4,8,16 |
| Pre-Dandeli compatibility | ✅ Good | Verifies strict validation before fork |
| Startup validation | ✅ Good | Tests invalid percentage values |
| Integration | ✅ Good | End-to-end test with 2 validators |
Conclusion
This PR is well-designed from a safety perspective. The 5% boundary cap is the critical safeguard that addresses the previous concern about unrestricted base fee changes. The implementation enforces this limit both at block production and validation, ensuring network-wide protection regardless of individual node configurations.
The minor suggestions above are improvements rather than blockers.
cffls
left a comment
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 like my concern has already been addressed. LGTM!



Description
This PR proposes a more flexible validation over EIP-1559 configurable TargetGas and BaseFeeDenominator, in the same way is already done by the gas limit. Which means that consensus will not block changes over this parameters set by the block producer. The goal is to allow more dynamic setups by the block producer whenever necessary.
The only proposed restriction is on the boundary range of 5% of parentBaseFee for increase or decrease. Which is already above the current limit of 1.7% on a scenario of 0% gas usage on parent block.
Changes