-
Notifications
You must be signed in to change notification settings - Fork 816
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-1559 - target block gas used as param #1873
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1873 +/- ##
==========================================
+ Coverage 61.24% 61.30% +0.06%
==========================================
Files 263 263
Lines 23246 23272 +26
==========================================
+ Hits 14237 14267 +30
+ Misses 8006 8000 -6
- Partials 1003 1005 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -285,7 +286,10 @@ | |||
// EndBlock executes all ABCI EndBlock logic respective to the evm module. It | |||
// returns no validator updates. | |||
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { | |||
am.keeper.AdjustDynamicBaseFeePerGas(ctx, uint64(req.BlockGasUsed)) | |||
newBaseFee := am.keeper.AdjustDynamicBaseFeePerGas(ctx, uint64(req.BlockGasUsed)) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
7f0bdb4
to
65b0852
Compare
app/upgrades.go
Outdated
@@ -110,6 +110,7 @@ var upgradesList = []string{ | |||
"v5.7.4", | |||
"v5.7.5", | |||
"v5.8.0", | |||
"v5.9.1-jeremy-eip-1559", |
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.
TODO: delete this, was just testing upgrade
Describe your changes and provide context
Introduce target block gas used as a param instead of just using block gas limit/2. This give us more flexibility to set target gas used independently from the block gas limit. Also, emits metrics for base fee.
Testing performed to validate your change
unit tests, tested on loadtest cluster with prometheus metrics