aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go
index ca7d10f..6c300c9 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -1338,7 +1338,11 @@ func (con *Consensus) ProcessAgreementResult(
return nil
}
// Sanity Check.
- if err := VerifyAgreementResult(rand, con.nodeSetCache); err != nil {
+ notarySet, err := con.nodeSetCache.GetNotarySet(rand.Position.Round)
+ if err != nil {
+ return err
+ }
+ if err := VerifyAgreementResult(rand, notarySet); err != nil {
con.baMgr.untouchAgreementResult(rand)
return err
}