diff --git a/ethereum/retesteth/src/main/java/org/hyperledger/besu/ethereum/retesteth/methods/TestMineBlocks.java b/ethereum/retesteth/src/main/java/org/hyperledger/besu/ethereum/retesteth/methods/TestMineBlocks.java index 2598451d8a..047d6225ef 100644 --- a/ethereum/retesteth/src/main/java/org/hyperledger/besu/ethereum/retesteth/methods/TestMineBlocks.java +++ b/ethereum/retesteth/src/main/java/org/hyperledger/besu/ethereum/retesteth/methods/TestMineBlocks.java @@ -64,7 +64,7 @@ public class TestMineBlocks implements JsonRpcMethod { final PoWBlockCreator blockCreator = new PoWBlockCreator( context.getCoinbase(), - () -> Optional.of(10_000_000L), + () -> Optional.of(blockchain.getChainHeadHeader().getGasLimit()), header -> context.getExtraData(), context.getTransactionPool().getPendingTransactions(), protocolContext,