Skip to content

Commit 37497a5

Browse files
authored
Merge pull request #906 from tronprotocol/feature/fix_transaction_fee
use new method
2 parents f4282f7 + 7bf5bc3 commit 37497a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tron/core/db/BandwidthProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private boolean consumeFee(AccountCapsule accountCapsule, long fee) {
126126
try {
127127
long latestOperationTime = dbManager.getHeadBlockTimeStamp();
128128
accountCapsule.setLatestOperationTime(latestOperationTime);
129-
dbManager.adjustBalance(accountCapsule.createDbKey(), -fee);
129+
dbManager.adjustBalance(accountCapsule, -fee);
130130
return true;
131131
} catch (BalanceInsufficientException e) {
132132
return false;

0 commit comments

Comments
 (0)