diff options
| -rw-r--r-- | routes/payments.js | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
