perf(ui): stop forcing full wallet re-scans on restore and peers refresh
Restoring or un-maximizing the window called refreshNow(), which wipes the history-scan progress and re-scans every z-address (a z_listreceivedbyaddress per address, each holding cs_main). The Peers tab's refresh button did the same, and holding F5 auto-repeated it. - Window restore no longer forces a refresh; the regular timers catch up (skipping the daemon-output backlog stays). - The Peers refresh button refreshes peers only. - F5 ignores key repeat. An explicit F5 or History refresh still does the full re-scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -587,8 +587,9 @@ void RenderPeersTab(App* app)
|
||||
ImGui::PushID("##peersRefresh");
|
||||
if (ImGui::InvisibleButton("##btn", ImVec2(btnW, btnH))) {
|
||||
if (!isRefreshing) {
|
||||
// Peers only: refreshNow() also forced a full wallet re-scan (every z-address)
|
||||
// for a button that says "Refresh peer list".
|
||||
app->refreshPeerInfo();
|
||||
app->refreshNow();
|
||||
}
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
|
||||
Reference in New Issue
Block a user