From f90a12d9f7dda5aa35802e82c41c315fee7976ff Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Mon, 3 Nov 2025 17:23:10 +0800 Subject: [PATCH] miner: fix inconsistent time unit, close XFN-59 (#1633) --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index fcbb02cbca..6dff4fb191 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -388,7 +388,7 @@ func getResetTime(chain *core.BlockChain, minePeriod int) time.Duration { if resetTime > minePeriodDuration || resetTime <= 0 { resetTime = minePeriodDuration } - log.Debug("[update] Miner worker timer reset", "resetMilliseconds", resetTime.Milliseconds(), "minePeriodSec", minePeriod, "currentBlockTimeSec", fmt.Sprintf("%d", currentBlockTime), "currentSystemTimeSec", fmt.Sprintf("%d.%03d", nowTime/1000, nowTime%1000)) + log.Debug("[update] Miner worker timer reset", "resetTimeSec", resetTime.Seconds(), "minePeriodSec", minePeriod, "currentBlockTimeSec", fmt.Sprintf("%d", currentBlockTime), "currentSystemTimeSec", fmt.Sprintf("%d.%03d", nowTime/1000, nowTime%1000)) return resetTime }