aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/sync.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-15 14:32:28 -0700
committerAdam Soltys <[email protected]>2026-08-15 14:32:28 -0700
commit643046319fa9a393374fc2348381d9505fe143eb (patch)
tree1f76cb3ace4ce821cca010def27e3b5ec7062fc9 /src/features/sync.js
parent16ee8bff43e8733848ef1b944b9d9312ce4ec223 (diff)
downloadcoinosv3-643046319fa9a393374fc2348381d9505fe143eb.tar.gz
coinosv3-643046319fa9a393374fc2348381d9505fe143eb.zip
Wallets go flat: every Spending and Savings is a top-level wallet in the switcher, named for its purpose, renamable apart — and a new wallet can carry its own seed or live at the next BIP84 account of one you already back up
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/features/sync.js')
-rw-r--r--src/features/sync.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/sync.js b/src/features/sync.js
index 35bf358..93451df 100644
--- a/src/features/sync.js
+++ b/src/features/sync.js
@@ -152,7 +152,7 @@ export function installSyncWallet(wallet) {
// identity follows the open wallet
wallet.registerLoadHook(() => {
- if (wallet.mnemonic) wallet.nostr.load(wallet.mnemonic, wallet.passphrase);
+ if (wallet.mnemonic) wallet.nostr.load(wallet.mnemonic, wallet.passphrase, wallet.accountIndex || 0);
else wallet.nostr.unload();
wallet._syncPubSeen = {}; // a new identity has published nothing yet
adoptSyncRelays().catch(() => {});