perf(net): hold wallet scans at connect, in the background and on tab entry
- Connect gate: after the node starts answering, wallet scans wait until the lock state is known and the node knows its tip (or the wallet has fewer than 500 transactions), at most 20 s. A node already behind latches the sync profile from the connect's getinfo. Meanwhile a list-only pass keeps the address list and the cached history up, and the session's first balance and per-address balances are read once even while catching up, so the wallet shows its last-synced values instead of 0. - Background: minimized, hidden, or covered without focus (3 s debounce, any input cancels) polls only the chain state every 15 s. Wallet scans, the mining poll, price, nudges and auto-lock interaction tracking pause; auto-lock now fires while minimized. Leaving a held profile marks every timer due again. - Tab entry marks the timers due instead of forcing scans; a stale list or a never-loaded history still loads on entry. - The scan entry points own the hard gates, failed enumerations keep the previous lists behind a retry hold, and failed balance calls never overwrite known balances with 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1561,6 +1561,7 @@
|
||||
"reduce_motion": "Reduzir Movimento",
|
||||
"refresh": "Atualizar",
|
||||
"refresh_now": "Atualizar Agora",
|
||||
"refresh_waits_for_sync": "O nó ainda está sincronizando. Os dados da carteira serão atualizados quando terminar.",
|
||||
"remove_favorite": "Remover favorito",
|
||||
"repair_wallet": "Reparar Carteira",
|
||||
"report_bug": "Reportar Bug",
|
||||
@@ -2127,6 +2128,7 @@
|
||||
"tx_loading_queued": "Atualização de transação na fila",
|
||||
"tx_loading_refreshing_cached": "Atualizando histórico da carteira (%d em cache)",
|
||||
"tx_loading_scanning_shielded": "Verificando histórico blindado (%d endereços)",
|
||||
"tx_loading_waits_for_sync": "O histórico será atualizado quando o nó terminar de sincronizar",
|
||||
"tx_mined": "MINERADO",
|
||||
"tx_progress_balances": "Atualizando saldos",
|
||||
"tx_progress_finalizing": "Finalizando transação",
|
||||
|
||||
Reference in New Issue
Block a user