aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 38215832..e7a4b851 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -253,7 +253,8 @@ export default {
} = req;
try {
- let node = getNode(type);
+ let known = await g(`${wallet}:balance`) !== null
+ let node = getNode(type, known ? wallet : undefined);
if (wallet === config.bitcoin.wallet || wallet === config.liquid.wallet) {
let { confirmations, details } = await node.getTransaction(txid);