diff --git a/src/app.cpp b/src/app.cpp index 3dda687..c2b4db2 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -586,8 +586,13 @@ void App::update() // would delay the PIN unlock worker task. if (network_refresh_.consumeDue(RefreshTimer::Fast)) { if (rpcConnected && !state_.isLocked()) { - refreshMiningInfo(); - + // Skip the mining poll while the daemon is in warmup (e.g. during -rescan). Otherwise + // getmininginfo is rejected with -28 ("Rescanning...") every second and floods the log. + // The rescan progress poll below still runs — that's how we track the warmup/rescan. + if (!state_.warming_up) { + refreshMiningInfo(); + } + // Poll getrescaninfo for rescan progress (if rescan flag is set) // Use fast_rpc_ when available to avoid blocking on rpc_'s // curl_mutex (which may be held by a long-running import).