From 913e9439a7c7883881895ee597a0cc464fb92353 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 13 Oct 2019 18:28:39 -0400 Subject: ... --- consensus/dummy/consensus.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'consensus') 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 } -- cgit v1.2.3-70-g09d2