Commit 75522f95 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #1204 from carver/deep-log-crashfix

crash fix: skip deep log if self.chain is not caught up
parents 44e5ff7d a9c058df
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment