Skip to content

Commit aa456ca

Browse files
committed
Merge branch 'feature/debug_net_limit' of https://github.com/tronprotocol/java-tron into feature/debug_net_limit
2 parents b08ce58 + 2e9fa7f commit aa456ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/tron/core/witness/WitnessController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ private void payStandbyWitness(List<ByteString> list) {
376376
for (ByteString b : list) {
377377
voteSum += getWitnesseByAddress(b).getVoteCount();
378378
}
379+
if (voteSum == 0) {
380+
return;
381+
}
379382
for (ByteString b : list) {
380383
long pay = getWitnesseByAddress(b).getVoteCount() * totalPay / voteSum;
381384
AccountCapsule accountCapsule = manager.getAccountStore().get(b.toByteArray());

0 commit comments

Comments
 (0)