aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-05-02 20:35:18 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2019-05-02 21:04:23 +0800
commit1edd55a2ff91bbbe94b8c1e8564ea2e5a45cf37c (patch)
treee005aadd788f93806335669aa720b83cf4d84038 /core/consensus.go
parent86befa5015417359f7b569cff9d6c3f02045f394 (diff)
downloaddexon-consensus-testnet.tar.gz
dexon-consensus-testnet.tar.zst
dexon-consensus-testnet.zip
core: optimize syncer handling agreement resulttestnet
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/consensus.go b/core/consensus.go
index ce0217a..b5baace 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -1368,11 +1368,7 @@ func (con *Consensus) ProcessAgreementResult(
return nil
}
// Sanity Check.
- notarySet, err := con.nodeSetCache.GetNotarySet(rand.Position.Round)
- if err != nil {
- return err
- }
- if err := VerifyAgreementResult(rand, notarySet); err != nil {
+ if err := VerifyAgreementResult(rand, con.nodeSetCache); err != nil {
con.baMgr.untouchAgreementResult(rand)
return err
}