diff options
author | Jason Carver <jacarver@linkedin.com> | 2015-06-09 02:49:59 +0800 |
---|---|---|
committer | Jason Carver <jacarver@linkedin.com> | 2015-06-09 02:49:59 +0800 |
commit | a9c058dfe0fe67b6482e591c83852732e81beb64 (patch) | |
tree | 715233f94de9f9ca4796199ccf2dd7cf32421e17 /miner | |
parent | 44e5ff7d159fab9b6508db01ac27e98fa0bb86b7 (diff) | |
download | go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar.gz go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar.bz2 go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar.lz go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar.xz go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.tar.zst go-tangerine-a9c058dfe0fe67b6482e591c83852732e81beb64.zip |
crash fix: skip deep log if self.chain is not caught up
@see trace https://gist.github.com/eupraxic/87fdfefe702c51d5944d
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go index 1580d4d42..611445529 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) { |