From b81de12e6f9806fe2cd8f439be5a76118b4fbced Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 22 Oct 2026 22:51:39 -0700 Subject: 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 --- src/features/ark.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/features') 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; -- cgit v1.2.3