aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-mgr.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-18 11:39:14 +0800
committerGitHub <noreply@github.com>2019-01-18 11:39:14 +0800
commit9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb (patch)
tree26fa5ba54878b52dc6c8bb610428cdb8b84baba7 /core/agreement-mgr.go
parentc5b303f4d143631fb565d4ec8ff3bcc609a4ffd3 (diff)
downloadtangerine-consensus-9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb.tar.gz
tangerine-consensus-9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb.tar.zst
tangerine-consensus-9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb.zip
core: Fix stuffs (#422)
* core: reduce syncing ba msg * core: fix checking period of agreement result
Diffstat (limited to 'core/agreement-mgr.go')
-rw-r--r--core/agreement-mgr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go
index d3cf533..9e86369 100644
--- a/core/agreement-mgr.go
+++ b/core/agreement-mgr.go
@@ -258,7 +258,7 @@ func (mgr *agreementMgr) processAgreementResult(
if isStop(aID) {
return nil
}
- if result.Position == aID {
+ if result.Position == aID && !agreement.confirmed() {
mgr.logger.Info("Syncing BA", "position", &result.Position)
for key := range result.Votes {
if err := agreement.processVote(&result.Votes[key]); err != nil {