public long getRemainingGas() {
    return Math.max(blockGasLimit - cumulativeGasUsed, 0);
  }
Manages the results of simulating block calls, including a list of simulation results and
tracking cumulative gas used.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/BlockStateCallSimulationResult.java