aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-01-28 17:43:28 +0800
committerMission Liao <mission.liao@dexon.org>2019-01-28 17:43:28 +0800
commit329c0e8d522ce1e93eb82d46b6d0af361c58cb2e (patch)
treea6596a73ad74630896d91acceea14b03cd105ae3
parent8d2f89a42cb69962258f53406f4f415d155f99e7 (diff)
downloaddexon-consensus-329c0e8d522ce1e93eb82d46b6d0af361c58cb2e.tar.gz
dexon-consensus-329c0e8d522ce1e93eb82d46b6d0af361c58cb2e.tar.zst
dexon-consensus-329c0e8d522ce1e93eb82d46b6d0af361c58cb2e.zip
Fixup: fix stuffs
-rw-r--r--core/agreement-mgr.go2
-rw-r--r--core/agreement.go3
-rw-r--r--core/agreement/signal.go2
-rw-r--r--core/agreement/vote-cache_test.go2
4 files changed, 3 insertions, 6 deletions
diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go
index 896f233..608fcac 100644
--- a/core/agreement-mgr.go
+++ b/core/agreement-mgr.go
@@ -235,7 +235,7 @@ func (mgr *agreementMgr) processVote(v *types.Vote) error {
return err
}
if v.Position.ChainID >= uint32(len(mgr.baModules)) {
- mgr.logger.Error("Process signal for unknown chain to BA",
+ mgr.logger.Error("Process vote for unknown chain to BA",
"position", &v.Position,
"baChain", len(mgr.baModules),
"baRound", len(mgr.configs),
diff --git a/core/agreement.go b/core/agreement.go
index 300979e..7b3a464 100644
--- a/core/agreement.go
+++ b/core/agreement.go
@@ -365,9 +365,6 @@ func (a *agreement) processSignal(signal *agrPkg.Signal) error {
case agrPkg.SignalFork:
a.data.recv.ReportForkVote(refVote, &signal.Votes[1])
case agrPkg.SignalDecide:
- if a.hasOutput {
- break
- }
a.hasOutput = true
a.data.recv.ConfirmBlock(refVote.BlockHash, signal.Votes)
close(a.doneChan)
diff --git a/core/agreement/signal.go b/core/agreement/signal.go
index 80b6598..0042cd1 100644
--- a/core/agreement/signal.go
+++ b/core/agreement/signal.go
@@ -1,4 +1,4 @@
-// Copyright 2018 The dexon-consensus Authors
+// Copyright 2019 The dexon-consensus Authors
// This file is part of the dexon-consensus library.
//
// The dexon-consensus library is free software: you can redistribute it
diff --git a/core/agreement/vote-cache_test.go b/core/agreement/vote-cache_test.go
index e51ab7c..d9b58f7 100644
--- a/core/agreement/vote-cache_test.go
+++ b/core/agreement/vote-cache_test.go
@@ -1,4 +1,4 @@
-// Copyright 2018 The dexon-consensus Authors
+// Copyright 2019 The dexon-consensus Authors
// This file is part of the dexon-consensus library.
//
// The dexon-consensus library is free software: you can redistribute it