aboutsummaryrefslogtreecommitdiffstats
path: root/routes/liquid
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-05-13 20:15:48 -0700
committerAdam Soltys <[email protected]>2020-05-13 20:45:16 -0700
commit25e8391aed541627e2aa2e3540c065f90b96c982 (patch)
tree2afe9ee088c5f3a130a0dbab7cb5174d9ed30fb1 /routes/liquid
parent79f6650b295ca1ae6f3ab337f8efd6d24eef38f1 (diff)
downloadcoinos-server-25e8391aed541627e2aa2e3540c065f90b96c982.tar.gz
coinos-server-25e8391aed541627e2aa2e3540c065f90b96c982.zip
unlock wallet on address generation to prevent keypool depletion
Diffstat (limited to 'routes/liquid')
-rw-r--r--routes/liquid/receive.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js
index 099ad13a..3ee2eadb 100644
--- a/routes/liquid/receive.js
+++ b/routes/liquid/receive.js
@@ -66,6 +66,9 @@ zmqRawTx.on("message", async (topic, message, sequence) => {
account = await db.Account.create(params);
}
+ if (config.liquid.walletpass)
+ await lq.walletPassphrase(config.liquid.walletpass, 300);
+
user.confidential = await lq.getNewAddress();
user.liquid = (await lq.getAddressInfo(
user.confidential