aboutsummaryrefslogtreecommitdiff
path: root/consensus
diff options
context:
space:
mode:
Diffstat (limited to 'consensus')
-rw-r--r--consensus/dummy/consensus.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/consensus/dummy/consensus.go b/consensus/dummy/consensus.go
index c9bbb90..92bd261 100644
--- a/consensus/dummy/consensus.go
+++ b/consensus/dummy/consensus.go
@@ -276,7 +276,9 @@ func (self *DummyEngine) Seal(chain consensus.ChainReader, block *types.Block, r
} else {
err = nil
}
- results <- block
+ if err == nil {
+ results <- block
+ }
return
}