From 51e8a724dc8c4636ecef52bad05d8f3f0b942c50 Mon Sep 17 00:00:00 2001 From: Uh Sado Date: Mon, 20 Jan 2020 09:38:06 +0000 Subject: [PATCH] Doesn't always increase timestamp for metadium --- miner/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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