From 7032e9f8ed9e7408d3e1123bc34cbaa37c120f2d 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 3bdeaf891a..ab80815db3 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 }