diff options
| author | Adam Soltys <[email protected]> | 2026-10-22 23:55:09 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-22 23:55:09 -0700 |
| commit | c143b7dbe900df9a644bb67b87a92fd208e1ee74 (patch) | |
| tree | ac759084137091e795f788fa7c35a71e2d6e098c /src/ark/lightning.js | |
| parent | a89bce97319d5860da8d581ff41cdace9acbb077 (diff) | |
| download | coinosv3-c143b7dbe900df9a644bb67b87a92fd208e1ee74.tar.gz coinosv3-c143b7dbe900df9a644bb67b87a92fd208e1ee74.zip | |
The wallet opens on the Ark server's last published info when the server is gone, and a unilateral exit needs only that
Adam, 2026-10-23: the app must stay navigable and able to exit if Coinos disappears. The shell already was (the worker precaches every chunk; verified with every coinos host unresolvable: boot, wallet creation, Savings address, Send all work, and Electrum fails over to public servers). The Ark side was not: connectArk's init asked the server for its info and threw, so the Manage page's Exit stayed disabled and doArkExit waited on a connect that could never finish.
ArkManager takes infoHint (the btc-wallet-arkinfo cache the app keeps per server): when GetArkInfo fails and a hint exists, init proceeds on it with `offline` set; the server key, fee tables and lifetimes are in it, and an exit needs the chain (esplora, not Coinos) rather than the server. doArkExit uses the initialized manager and waits on init alone, not on the Nostr snapshot gate the full connect also waits for (its relays may be gone too). tools/ark-offline-init.test.js.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'src/ark/lightning.js')
0 files changed, 0 insertions, 0 deletions
