diff options
-rw-r--r-- | core/agreement-mgr.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go index bcf1013..c3692d8 100644 --- a/core/agreement-mgr.go +++ b/core/agreement-mgr.go @@ -582,18 +582,18 @@ Loop: } default: } - if agr.pullVotes() { - pos := agr.agreementID() - mgr.logger.Debug("Calling Network.PullVotes for syncing votes", - "position", &pos) - mgr.network.PullVotes(pos) - } if err = agr.nextState(); err != nil { mgr.logger.Error("Failed to proceed to next state", "nodeID", mgr.ID.String(), "error", err) break Loop } + if agr.pullVotes() { + pos := agr.agreementID() + mgr.logger.Debug("Calling Network.PullVotes for syncing votes", + "position", &pos) + mgr.network.PullVotes(pos) + } for i := 0; i < agr.clocks(); i++ { // Priority select for agreement.done(). select { |