Commit 35806ccc authored by obscuren's avatar obscuren

build server fix

parent b25e8b70
...@@ -289,6 +289,10 @@ func (self *worker) push() { ...@@ -289,6 +289,10 @@ func (self *worker) push() {
func (self *worker) makeCurrent() { func (self *worker) makeCurrent() {
block := self.chain.NewBlock(self.coinbase) block := self.chain.NewBlock(self.coinbase)
parent := self.chain.GetBlock(block.ParentHash()) parent := self.chain.GetBlock(block.ParentHash())
// TMP fix for build server ...
if parent == nil {
return
}
if block.Time() <= parent.Time() { if block.Time() <= parent.Time() {
block.Header().Time = parent.Header().Time + 1 block.Header().Time = parent.Header().Time + 1
......
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