From 35806ccc1c604a39893771303d21b384b2aa0c87 Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 28 May 2015 17:18:13 +0200 Subject: [PATCH] build server fix --- miner/worker.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miner/worker.go b/miner/worker.go index bc69551696..58efd61db7 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -289,6 +289,10 @@ func (self *worker) push() { func (self *worker) makeCurrent() { block := self.chain.NewBlock(self.coinbase) parent := self.chain.GetBlock(block.ParentHash()) + // TMP fix for build server ... + if parent == nil { + return + } if block.Time() <= parent.Time() { block.Header().Time = parent.Header().Time + 1