We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b08ce58 + 2e9fa7f commit aa456caCopy full SHA for aa456ca
src/main/java/org/tron/core/witness/WitnessController.java
@@ -376,6 +376,9 @@ private void payStandbyWitness(List<ByteString> list) {
376
for (ByteString b : list) {
377
voteSum += getWitnesseByAddress(b).getVoteCount();
378
}
379
+ if (voteSum == 0) {
380
+ return;
381
+ }
382
383
long pay = getWitnesseByAddress(b).getVoteCount() * totalPay / voteSum;
384
AccountCapsule accountCapsule = manager.getAccountStore().get(b.toByteArray());
0 commit comments