From 01e1686265def675445c0f74a4b92ec4ffd71492 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 20 Sep 2024 10:04:08 -0700 Subject: rename account id --- routes/users.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'routes/users.ts') diff --git a/routes/users.ts b/routes/users.ts index 6550d90f..9746f36a 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -619,13 +619,15 @@ export default { let id = v4(); let account = { id, seed, type }; - await bc.createWallet({ + let node = rpc(config[type]); + + await node.createWallet({ wallet_name: id, descriptors: true, disable_private_keys: true, }); - let node = rpc({ ...config.bitcoin, wallet: id }); + node = rpc({ ...config[type], wallet: id }); let descriptors = []; for (let i of [0, 1]) { -- cgit v1.2.3