diff options
| -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; |
