From 9c5a684d3ac468d7117875db1f02e70f92a032e3 Mon Sep 17 00:00:00 2001 From: Peter John Bushnell Date: Fri, 13 Dec 2024 14:13:28 +0000 Subject: [PATCH] fix: update api and mediator to set wallet when using encryption (#482) --- services/keymaster/server/src/keymaster-api.js | 1 + services/mediators/satoshi/src/satoshi-mediator.js | 1 + 2 files changed, 2 insertions(+) diff --git a/services/keymaster/server/src/keymaster-api.js b/services/keymaster/server/src/keymaster-api.js index 8536fcab..b813e9ad 100644 --- a/services/keymaster/server/src/keymaster-api.js +++ b/services/keymaster/server/src/keymaster-api.js @@ -694,6 +694,7 @@ app.listen(port, async () => { if (config.keymasterPassphrase) { wallet_enc.setPassphrase(config.keymasterPassphrase); + wallet_enc.setWallet(wallet); wallet = wallet_enc; } diff --git a/services/mediators/satoshi/src/satoshi-mediator.js b/services/mediators/satoshi/src/satoshi-mediator.js index 48e1a5e4..f2013092 100644 --- a/services/mediators/satoshi/src/satoshi-mediator.js +++ b/services/mediators/satoshi/src/satoshi-mediator.js @@ -506,6 +506,7 @@ async function main() { if (config.keymasterPassphrase) { wallet_enc.setPassphrase(config.keymasterPassphrase); + wallet_enc.setWallet(wallet); wallet = wallet_enc; }