aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-28 23:18:13 +0800
committerobscuren <geffobscura@gmail.com>2015-05-28 23:18:13 +0800
commit35806ccc1c604a39893771303d21b384b2aa0c87 (patch)
tree5d4c09fb05da94c8fa6932092730efacf499673f
parentb25e8b707953ae57ee88438d7cd8edcb1c80cfd5 (diff)
downloadgo-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar.gz
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar.bz2
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar.lz
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar.xz
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.tar.zst
go-tangerine-35806ccc1c604a39893771303d21b384b2aa0c87.zip
build server fix
-rw-r--r--miner/worker.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index bc6955169..58efd61db 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