We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f92b6 commit 09d1307Copy full SHA for 09d1307
rskj-core/src/main/java/org/ethereum/core/TransactionExecutor.java
@@ -571,7 +571,10 @@ public ProgramResult getResult() {
571
}
572
573
public long getGasUsed() {
574
- return GasCost.subtract(GasCost.toGas(tx.getGasLimit()), mEndGas);
+ if (activations.isActive(ConsensusRule.RSKIP136)) {
575
+ return GasCost.subtract(GasCost.toGas(tx.getGasLimit()), mEndGas);
576
+ }
577
+ return toBI(tx.getGasLimit()).subtract(toBI(mEndGas)).longValue();
578
579
580
public Coin getPaidFees() { return paidFees; }
0 commit comments