From 2683aac9b0505bf7744da5f0d0d0a9040e765723 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 4 Apr 2015 13:27:17 +0200 Subject: [PATCH] Make sure we're not mining on an invalid TS --- miner/worker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miner/worker.go b/miner/worker.go index 4385b51c80..77b8406cb8 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -207,6 +207,9 @@ func (self *worker) commitNewWork() { defer self.uncleMu.Unlock() block := self.chain.NewBlock(self.coinbase) + if block.Time() == self.chain.CurrentBlock().Time() { + block.Header().Time++ + } self.current = env(block, self.eth) for _, ancestor := range self.chain.GetAncestors(block, 7) {