diff options
| author | Adam Soltys <[email protected]> | 2026-10-22 22:51:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-22 22:51:39 -0700 |
| commit | b81de12e6f9806fe2cd8f439be5a76118b4fbced (patch) | |
| tree | 5bcbe95bf38741bf950e5a2385a4a257568980c5 /src | |
| parent | d6bc9914368cd1ecfe26e57b5ab5d89e389a3f09 (diff) | |
| download | coinosv3-b81de12e6f9806fe2cd8f439be5a76118b4fbced.tar.gz coinosv3-b81de12e6f9806fe2cd8f439be5a76118b4fbced.zip | |
Spending settings: ask for the chain tip right after init, so expiries and exit costs are judged at once and the next refresh starts from the last tip seen
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/features/ark.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js index 03f41ed..4b15099 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -673,6 +673,14 @@ export function arkFeature(ctx) { rememberArkInfo(cfg.ark, mgr.info, mgr._tipH); render(); }); + // The tip: expiries and exit costs are judged against it, and init alone + // never asks for it (the first sync does, after the snapshot gate). Ask + // now, off the connect path, and remember it for the next refresh. + inited.then(() => mgr._tipMemo()).then(() => { + if (gen !== arkInitGen || !mgr._tipH) return; + rememberArkInfo(cfg.ark, mgr.info, mgr._tipH); + render(); + }).catch(() => {}); arkConnectPromise = Promise.all([inited, restored]).then(() => { if (gen !== arkInitGen) throw new Error('superseded'); // wallet switched mid-connect ark = mgr; |
