good morning!!!!

Skip to content
Snippets Groups Projects
Commit a9c058df authored by Jason Carver's avatar Jason Carver
Browse files

crash fix: skip deep log if self.chain is not caught up

parent 44e5ff7d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment