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 e039f82 + 66108ee commit 19f01cbCopy full SHA for 19f01cb
src/main/java/org/tron/core/actuator/VoteWitnessActuator.java
@@ -78,6 +78,7 @@ public boolean validate() throws ContractValidateException {
78
long share = dbManager.getAccountStore().get(contract.getOwnerAddress().toByteArray())
79
.getShare();
80
long sum = contract.getVotesList().stream().mapToLong(vote -> vote.getVoteCount()).sum();
81
+ sum *= 1000000; //trx -> drop. The vote count is based on TRX
82
if (sum > share) {
83
throw new ContractValidateException(
84
"The total number of votes[" + sum + "] is greater than the share[" + share + "]");
0 commit comments