diff --git a/miner/worker.go b/miner/worker.go index 9bd1100870c7..f2d9ea934277 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1183,11 +1183,11 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64) return } } - if parent.Time() >= uint64(timestamp) { - timestamp = int64(parent.Time() + 1) - } if metaminer.IsPoW() { + if parent.Time() >= uint64(timestamp) { + timestamp = int64(parent.Time() + 1) + } // this will ensure we're not going off too far in the future if now := time.Now().Unix(); timestamp > now+1 { wait := time.Duration(timestamp-now) * time.Second