From c9a70b8e4ca7fdb7f8e03e94ef1f24753bd24f94 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 16 Feb 2024 19:52:43 +0000 Subject: unlock wallet for bump --- routes/payments.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/payments.js b/routes/payments.js index 9e4122f6..3dd8e5e3 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -426,9 +426,11 @@ export default { ourfee, ); + if (config[type].walletpass) + await node.walletPassphrase(config[type].walletpass, 300); p.hex = (await node.signRawTransactionWithWallet(newTx.hex)).hex; let r = await node.testMempoolAccept([p.hex]); - if (!r[0].allowed) fail("transaction rejected"); + if (!r[0].allowed) fail(`transaction rejected ${p.hex}`); p.hash = await node.sendRawTransaction(p.hex); p.fee = sats(newTx.fee); await s(`payment:${id}`, p); -- cgit v1.2.3