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, 6 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go
index 90a8f09..b5cb445 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -553,6 +553,9 @@ func (con *Consensus) ProcessVote(vote *types.Vote) (err error) {
// ProcessAgreementResult processes the randomness request.
func (con *Consensus) ProcessAgreementResult(
rand *types.AgreementResult) error {
+ if rand.Round == 0 {
+ return nil
+ }
if !con.ccModule.blockRegistered(rand.BlockHash) {
return nil
}
@@ -625,6 +628,9 @@ func (con *Consensus) ProcessAgreementResult(
// ProcessBlockRandomnessResult processes the randomness result.
func (con *Consensus) ProcessBlockRandomnessResult(
rand *types.BlockRandomnessResult) error {
+ if rand.Round == 0 {
+ return nil
+ }
if !con.ccModule.blockRegistered(rand.BlockHash) {
return nil
}