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/sync.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/features/sync.js') diff --git a/src/features/sync.js b/src/features/sync.js index 1f3414d..9d361aa 100644 --- a/src/features/sync.js +++ b/src/features/sync.js @@ -111,8 +111,9 @@ export function installSyncWallet(wallet) { // bind the per-device d-tag now: the debounced publish must keep this // snapshot's network even if the wallet switches networks before it fires const dtag = deviceDtag(wallet.netName); + console.log('[syncdbg] cacheSaved scheduling publish', dtag, 'hasArk?', !!snap.arkState, 'sk?', !!wallet.nostr.sk); clearTimeout(wallet._nostrPubTimer); - wallet._nostrPubTimer = setTimeout(() => wallet.nostr.publish(snap, dtag), 2500); + wallet._nostrPubTimer = setTimeout(() => { console.log('[syncdbg] publishing now', dtag); wallet.nostr.publish(snap, dtag); }, 2500); }); wallet.registerRealtimeHook({ stop: () => clearTimeout(wallet._nostrPubTimer) }); } -- cgit v1.2.3