Skip to content

Commit 660d44a

Browse files
committed
add verification
1 parent 12a420d commit 660d44a

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)