Improve Log Message When Setting RPC Gas Cap for Transaction Simulation (#7679)

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
pull/7609/merge
Karim Taam 1 month ago committed by GitHub
parent aed6bb0044
commit bef897a162
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      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;

Loading…
Cancel
Save