From cd4928b506474cd80c1cf2ee31499636c6592f2d Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Wed, 30 Oct 2019 16:54:44 +0300 Subject: [PATCH] Fixed incorrect vote counting for startVoting function --- src/deploy/deploy-home/contracts/Bridge.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deploy/deploy-home/contracts/Bridge.sol b/src/deploy/deploy-home/contracts/Bridge.sol index da3fe37..a964c28 100644 --- a/src/deploy/deploy-home/contracts/Bridge.sol +++ b/src/deploy/deploy-home/contracts/Bridge.sol @@ -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();