Skip to content

Commit a343239

Browse files
committed
add default
1 parent 360716c commit a343239

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/main/java/org/tron/core/actuator/FreezeBalanceActuator.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public boolean execute(TransactionResultCapsule ret) throws ContractExeException
9090
dbManager.getDynamicPropertiesStore()
9191
.addTotalEnergyWeight(freezeBalanceContract.getFrozenBalance() / 1000_000L);
9292
break;
93+
default:
94+
//this should never happen
95+
break;
9396
}
9497

9598
dbManager.getAccountStore().put(accountCapsule.createDbKey(), accountCapsule);

‎src/main/java/org/tron/core/actuator/UnfreezeBalanceActuator.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public boolean execute(TransactionResultCapsule ret) throws ContractExeException
7676

7777
dbManager.getDynamicPropertiesStore().addTotalEnergyWeight(-unfreezeBalance / 1000_000L);
7878
break;
79+
default:
80+
//this should never happen
81+
break;
7982
}
8083

8184
VotesCapsule votesCapsule;

0 commit comments

Comments
 (0)