Skip to content

Commit ccf0dba

Browse files
authored
45M gas for mainnet (#8824)
* 45M gas for mainnet Signed-off-by: Sally MacFarlane <[email protected]> * changelog entry Signed-off-by: Sally MacFarlane <[email protected]> --------- Signed-off-by: Sally MacFarlane <[email protected]>
1 parent fea73f0 commit ccf0dba

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
### Additions and Improvements
2222
- Introduce the `TransactionValidatorService` to allow plugins to add custom validation rules [#8793](https://github.com/hyperledger/besu/pull/8793)
2323
- Enable parallel tx processing by default if Bonsai is used [#8668](https://github.com/hyperledger/besu/pull/8668)
24+
- Increase mainnet gas limit to 45M [#8824](https://github.com/hyperledger/besu/pull/8824)
25+
2426

2527
#### Fusaka Devnet
2628
- EIP-7825 - Transaction gas limit cap [#8700](https://github.com/hyperledger/besu/pull/8700)

consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public class MergeCoordinator implements MergeMiningCoordinator, BadChainListene
8080
*/
8181
private static final double TRY_FILL_BLOCK = 1.0;
8282

83-
private static final long DEFAULT_TARGET_GAS_LIMIT = 36_000_000L;
83+
// if you change these gas limits, also update the tests in MergeCoordinatorTest
84+
private static final long DEFAULT_TARGET_GAS_LIMIT = 45_000_000L;
8485
// testnets might have higher gas limits than mainnet and are incrementally updated
8586
private static final long DEFAULT_TARGET_GAS_LIMIT_TESTNET = 60_000_000L;
8687
// next target gas limit TBD

consensus/merge/src/test/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeCoordinatorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ public void shouldSetCorrectTargetGasLimit(final ArgumentsAccessor argumentsAcce
10101010

10111011
public static Stream<Arguments> getGasLimits() {
10121012
return Stream.of(
1013-
Arguments.of("mainnet", 1L, 36_000_000L),
1013+
Arguments.of("mainnet", 1L, 45_000_000L),
10141014
Arguments.of("holesky", 17_000L, 60_000_000L),
10151015
Arguments.of("sepolia", 11_155_111L, 60_000_000L),
10161016
Arguments.of("hoodi", 560_048L, 60_000_000L),
@@ -1043,7 +1043,7 @@ private BlockHeader terminalPowBlock() {
10431043
genesisState.getBlock().getHeader().getNumber() + 1,
10441044
genesisState.getBlock().getHeader().getBaseFee().orElse(Wei.of(0x3b9aca00)),
10451045
0,
1046-
15000000l))
1046+
15000000L))
10471047
.timestamp(1)
10481048
.gasLimit(genesisState.getBlock().getHeader().getGasLimit())
10491049
.stateRoot(genesisState.getBlock().getHeader().getStateRoot())
@@ -1066,7 +1066,7 @@ private BlockHeader nextBlockHeader(
10661066
genesisState.getBlock().getHeader().getNumber() + 1,
10671067
parentHeader.getBaseFee().orElse(Wei.of(0x3b9aca00)),
10681068
0,
1069-
15000000l))
1069+
15000000L))
10701070
.buildHeader();
10711071
}
10721072

0 commit comments

Comments
 (0)