aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-09 04:35:11 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-09 04:35:11 +0800
commit75522f95ce13b449123b60963ec1261d1e0507f1 (patch)
tree715233f94de9f9ca4796199ccf2dd7cf32421e17
parent44e5ff7d159fab9b6508db01ac27e98fa0bb86b7 (diff)
parenta9c058dfe0fe67b6482e591c83852732e81beb64 (diff)
downloaddexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar.gz
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar.bz2
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar.lz
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar.xz
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.tar.zst
dexon-75522f95ce13b449123b60963ec1261d1e0507f1.zip
Merge pull request #1204 from carver/deep-log-crashfix
crash fix: skip deep log if self.chain is not caught up
-rw-r--r--miner/worker.go2
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) {