From ebfdab1585651d5a5734f0c44057a350eeca8f35 Mon Sep 17 00:00:00 2001 From: Roman Vaseev <4833306+Filter94@users.noreply.github.com> Date: Tue, 26 Jul 2022 21:18:09 +0300 Subject: [PATCH] Fixed desired gas limit setting in the reference tests service (#4170) Signed-off-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com> Co-authored-by: Justin Florentine --- .../besu/ethereum/retesteth/methods/TestMineBlocks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,