From 5f478de7d90f9170b81b21af6492de1be2076696 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2026 22:57:39 -0700 Subject: Stop re-scanning coin addresses; frontier-only poll + manual rescan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per request: an address is scanned once, then never auto-scanned again. The routine poll now checks only the fresh frontier (next receive + change address) for new deposits; coin-holding addresses are no longer polled and the periodic full re-scan is removed. Spends on existing coins arrive via the WebSocket while connected; a new Settings → Rescan button does a full scan to catch anything missed (e.g. a payment to a reused old address). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 789f12c..c64c650 100644 --- a/src/app.js +++ b/src/app.js @@ -521,6 +521,17 @@ function settingsTab() { { class: 'card col' }, h('h3', {}, 'Offline transfer'), snapshotActions() + ), + h( + 'div', + { class: 'card col' }, + h('h3', {}, 'Rescan'), + h('p', { class: 'small muted', style: 'margin:0' }, + 'Your current address updates automatically. Rescan only if a payment was sent to an old (reused) address and isn’t showing.'), + wallet.offline + ? null + : h('button', { disabled: wallet.scanning, onClick: () => wallet.scan() }, + wallet.scanning ? 'Scanning…' : 'Rescan wallet') ) ); } -- cgit v1.2.3