You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: The VotingToManageEmissionFunds.canBeFinalizedNow function doesn't allow to finalize an active ballot if all validators are voted during the 15-minutes period of time (canceling threshold) right after a ballot is created. In that case, finalization is only possible after ballot's endTime is reached.
Solution: Replace the condition if (isActive(_id)) return false; with if (isActive(_id) && getTotalVoters(_id) < validatorsLength) return false; here:
- it would allow finalizing a ballot before its endTime is reached even if all validators voted within 15-minutes canceling threshold right after the ballot was created.
The text was updated successfully, but these errors were encountered:
Problem: The VotingToManageEmissionFunds.canBeFinalizedNow function doesn't allow to finalize an active ballot if all validators are voted during the 15-minutes period of time (canceling threshold) right after a ballot is created. In that case, finalization is only possible after ballot's endTime is reached.
Solution: Replace the condition
if (isActive(_id)) return false;
withif (isActive(_id) && getTotalVoters(_id) < validatorsLength) return false;
here:poa-network-consensus-contracts/contracts/VotingToManageEmissionFunds.sol
Line 50 in 6c2c779
endTime
is reached even if all validators voted within 15-minutes canceling threshold right after the ballot was created.The text was updated successfully, but these errors were encountered: