diff options
author | Determinant <[email protected]> | 2019-10-13 18:28:39 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-10-13 18:28:39 -0400 |
commit | 913e9439a7c7883881895ee597a0cc464fb92353 (patch) | |
tree | 755a6885a456d643f5f0f7c5858ef9bfeb04e5ef /consensus | |
parent | bc43122f54ed8de21f74ee6393549c9554d732e8 (diff) |
...
Diffstat (limited to 'consensus')
-rw-r--r-- | consensus/dummy/consensus.go | 4 |
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 } |