From 28480b1a6171b0989d4a0590b1137ee93ff86139 Mon Sep 17 00:00:00 2001 From: geruiwang Date: Thu, 14 Mar 2024 20:17:40 +0800 Subject: [PATCH] remove 1s waiting time in miner --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 6967ae5207eb..6f7ee10fce79 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -563,7 +563,7 @@ func (self *worker) commitNewWork() { tstamp = parent.Time().Int64() + 1 } // this will ensure we're not going off too far in the future - if now := time.Now().Unix(); tstamp > now+1 { + if now := time.Now().Unix(); tstamp > now { wait := time.Duration(tstamp-now) * time.Second log.Info("Mining too far in the future", "wait", common.PrettyDuration(wait)) time.Sleep(wait)