diff --git a/miner/worker.go b/miner/worker.go index 1580d4d427..6114455297 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -352,7 +352,7 @@ func (self *worker) isBlockLocallyMined(deepBlockNum uint64) bool { //Does the block at {deepBlockNum} send earnings to my coinbase? var block = self.chain.GetBlockByNumber(deepBlockNum) - return block.Header().Coinbase == self.coinbase + return block != nil && block.Header().Coinbase == self.coinbase } func (self *worker) logLocalMinedBlocks(previous *environment) {