aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-10-13 18:28:39 -0400
committerDeterminant <ted.sybil@gmail.com>2019-10-13 18:28:39 -0400
commit913e9439a7c7883881895ee597a0cc464fb92353 (patch)
tree755a6885a456d643f5f0f7c5858ef9bfeb04e5ef
parentbc43122f54ed8de21f74ee6393549c9554d732e8 (diff)
...
-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
}