diff --git a/miner/miner.go b/miner/miner.go index a65ec99b4..dbf647272 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -184,7 +184,9 @@ func (m *Miner) mine(ctx context.Context) { log.Errorf("mining block failed: %s", err) continue } - blks = append(blks, b) + if b != nil { + blks = append(blks, b) + } } if len(blks) != 0 {