Fixed incorrect vote counting for startVoting function

This commit is contained in:
Kirill Fedoseev 2019-10-30 16:54:44 +03:00
parent e8e42429fb
commit cd4928b506
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ contract Bridge {
}
function startVoting() public readyOrVoting currentValidator {
if (tryVote(Vote.START_VOTING)) {
if (tryVote(Vote.START_VOTING, epoch)) {
nextEpoch++;
status = Status.VOTING;
states[nextEpoch].threshold = getThreshold();