-
Notifications
You must be signed in to change notification settings - Fork 890
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
increase mainnet & Sepolia gas limit to 36M #8249
increase mainnet & Sepolia gas limit to 36M #8249
Conversation
… from BesuControllerBuilder Signed-off-by: Daniel Lehrner <[email protected]>
The system call gas limit is 30M regardless of the block gas limit |
Signed-off-by: Daniel Lehrner <[email protected]>
@@ -18,12 +18,12 @@ | |||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | |||
"prevRandao": "0x0000000000000000000000000000000000000000000000000000000000000000", | |||
"blockNumber": "0x1", | |||
"gasLimit": "0x1c9c380", | |||
"gasLimit": "0x1ca35ef", |
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.
the gasLimit has changed because the new limit is 36M: We start with a block of 30M and increase gas limit for the next block by 30M / 1024.
Signed-off-by: Daniel Lehrner <[email protected]>
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.
LGTM, just one place we might want to default to testnet default gas
@@ -79,7 +79,7 @@ public class MergeCoordinator implements MergeMiningCoordinator, BadChainListene | |||
*/ | |||
private static final double TRY_FILL_BLOCK = 1.0; | |||
|
|||
private static final long DEFAULT_TARGET_GAS_LIMIT = 30000000L; | |||
private static final long DEFAULT_TARGET_GAS_LIMIT = 36_000_000L; |
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.
* href="https://eips.ethereum.org/EIPS/eip-2935#block-processing">EIP-2935</a> This value is | ||
* independent of the gas limit of the block | ||
*/ | ||
private static final long SYSTEM_CALL_GAS_LIMIT = 30_000_000L; |
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.
if anything triggers an issue in pectra, I bet it would be some client using the block limit for system call gas limit
Please add a CHANGELOG entry |
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.
changelog entry
… the one for mainnet Signed-off-by: Daniel Lehrner <[email protected]>
@daniellehrner is this one ready to merge? |
Yes, I think it is. I am just need to get the CI to pass |
Signed-off-by: Daniel Lehrner <[email protected]>
Signed-off-by: Daniel Lehrner <[email protected]>
PR description
Sets the mainnet gas limit to 36M. Sets the gas limit for Sepolia, Holesky and Ephemery to
DEFAULT_TARGET_GAS_LIMIT_TESTNET
. The idea is to have a separate constant for tesnets in order to increase the gas limt there first before we do it on mainnet.This PR also removes
GasLimitCalculator
fromBesuControllerBuilder
, becauseBesuController
does not use it. It seems it was removed at some point, but was still present as dead code inBesuControllerBuilder
.Fixed Issue(s)
fixes #8245
Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests