From 9c4c828bfbf50db7dfa61f1b9ae4cc0ffc7cac5b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 6 Jul 2026 10:36:54 -0700 Subject: tmp: instrument ark connect + sync publish (debug) --- src/features/ark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/features/ark.js') diff --git a/src/features/ark.js b/src/features/ark.js index bf7b94f..d0f17f2 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -182,7 +182,8 @@ export function arkFeature(ctx) { // an idle device never shared its coins — another device would never see // them. Publishing on connect guarantees every device's ark balance // reaches the relay (and gets merged) without needing a transaction first. - if (mgr.state && (mgr.state.vtxos || []).length) { try { wallet.saveCache(); } catch {} } + console.log('[arkdbg] connected, vtxos=', (mgr.state && mgr.state.vtxos || []).length, 'net=', getNetwork()); + if (mgr.state && (mgr.state.vtxos || []).length) { try { wallet.saveCache(); console.log('[arkdbg] on-connect saveCache called'); } catch (e) { console.log('[arkdbg] saveCache threw', e.message); } } const tick = () => mgr.sync().catch(() => {}).then(() => driveExits(mgr)).catch(() => {}); tick(); // Reconcile once on connect: a vtxo synced in from another device (or -- cgit v1.2.3