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 3524aa2 + b19212f commit 2c751a3Copy full SHA for 2c751a3
src/main/java/org/tron/core/witness/WitnessController.java
@@ -398,11 +398,12 @@ private void payStandbyWitness(List<ByteString> list) {
398
}
399
if (voteSum > 0) {
400
for (ByteString b : list) {
401
- long pay = getWitnesseByAddress(b).getVoteCount() * totalPay / voteSum;
+ long pay = (long) (getWitnesseByAddress(b).getVoteCount() * ((double) totalPay / voteSum));
402
AccountCapsule accountCapsule = manager.getAccountStore().get(b.toByteArray());
403
accountCapsule.setAllowance(accountCapsule.getAllowance() + pay);
404
manager.getAccountStore().put(accountCapsule.createDbKey(), accountCapsule);
405
406
407
408
+
409
0 commit comments