From bef897a162d949b16ecf90324bb81ee416faba48 Mon Sep 17 00:00:00 2001 From: Karim Taam Date: Wed, 25 Sep 2024 18:15:23 +0200 Subject: [PATCH] Improve Log Message When Setting RPC Gas Cap for Transaction Simulation (#7679) Signed-off-by: Karim Taam --- .../besu/ethereum/transaction/TransactionSimulator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/TransactionSimulator.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/TransactionSimulator.java index 070c1dcf77..29459ba3da 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/TransactionSimulator.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/TransactionSimulator.java @@ -236,7 +236,9 @@ public class TransactionSimulator { : blockHeaderToProcess.getGasLimit(); if (rpcGasCap > 0) { gasLimit = rpcGasCap; - LOG.info("Capping gasLimit to " + rpcGasCap); + LOG.trace( + "Gas limit capped at {} for transaction simulation due to provided RPC gas cap.", + rpcGasCap); } final Wei value = callParams.getValue() != null ? callParams.getValue() : Wei.ZERO; final Bytes payload = callParams.getPayload() != null ? callParams.getPayload() : Bytes.EMPTY;