diff options
| author | Adam Soltys <[email protected]> | 2026-09-10 21:05:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-10 21:05:58 -0700 |
| commit | 3cda220c2432181b5f2dfc0c47e28c3e3cb54f18 (patch) | |
| tree | e727d022556f63d2a6383360fb59a466e58de537 /src/features/ark.js | |
| parent | 1c34bb343c47f6e200575bac967959656ae7becb (diff) | |
| download | coinosv3-3cda220c2432181b5f2dfc0c47e28c3e3cb54f18.tar.gz coinosv3-3cda220c2432181b5f2dfc0c47e28c3e3cb54f18.zip | |
Each account in the switcher wears its own face, and its own renewal warning.
Two accounts could show the same name and avatar: the identity list read a
key stamped onto the account record, and the stamp was taken during the gap
in a wallet switch where the new account is already loaded and saved but the
features haven't re-inited — so the PREVIOUS account's signer was still
answering "who are you". The live signer now re-checks on every read that it
still belongs to the open wallet, not just at init(); and the switcher reads
each account's own persisted login (or its seed's nostr key) instead of the
stamped mirror, so a record stamped wrong before this still lists right.
The Spending renewal warning belonged to the wallet that computed it and
stayed on screen after switching — the old wallet's amount and deadline over
the new wallet's balance, with a 30-minute throttle keeping it there. It now
resets with the ark manager, and the next connect re-decides.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_019mrt228Upn9nNCwGixzSLx
Diffstat (limited to 'src/features/ark.js')
| -rw-r--r-- | src/features/ark.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js index 2e97a61..251f740 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -393,6 +393,13 @@ export function arkFeature(ctx) { lnTagSeen = -1; ark = null; arkConnectPromise = null; + // The renewal warning describes the coins of the wallet we're leaving. + // Switching accounts used to carry it onto the next one — with the old + // wallet's amount and deadline, over the new wallet's balance — and the + // 30-minute throttle then kept it there. Both reset with the manager; + // the next connect's first tick re-decides for the wallet now open. + arkRenewWarn = null; + arkAutoRefreshAt = 0; } function arkAvailable() { |
