Skip to content

Commit

Permalink
Improve Log Message When Setting RPC Gas Cap for Transaction Simulati…
Browse files Browse the repository at this point in the history
…on (hyperledger#7679)

Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt authored Sep 25, 2024
1 parent aed6bb0 commit bef897a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ public Optional<TransactionSimulatorResult> processWithWorldUpdater(
: 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;
Expand Down

0 comments on commit bef897a

Please sign in to comment.