Skip to content

Commit e9a34f4

Browse files
committed
fix(receipt): use the right energy total
1 parent 9fbc009 commit e9a34f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chainbase/src/main/java/org/tron/core/store/TransactionRetStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public TransactionInfoCapsule getTransactionInfo(byte[] key) throws BadItemExcep
5757
if (transactionResultInfo.getId().equals(id)) {
5858
Protocol.ResourceReceipt receipt = transactionResultInfo.getReceipt();
5959
// If query a result with dirty origin usage in receipt, we just reset it.
60-
if (receipt.getEnergyPenaltyTotal() == 0 && receipt.getOriginEnergyUsage() > 0) {
60+
if (receipt.getEnergyUsageTotal() == 0 && receipt.getOriginEnergyUsage() > 0) {
6161
transactionResultInfo =
6262
transactionResultInfo.toBuilder()
6363
.setReceipt(

0 commit comments

Comments
 (0)