aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-05 20:59:43 -0700
committerAdam Soltys <[email protected]>2024-09-05 20:59:43 -0700
commit80ae2ffb356a01da30c8c8d197cfc277a24674ef (patch)
treedc9114f23f24fefafda01fba137ef163eda33086 /routes
parenta12802e46139645731f0f42ddd0b423a1911c8b8 (diff)
downloadcoinos-server-80ae2ffb356a01da30c8c8d197cfc277a24674ef.tar.gz
coinos-server-80ae2ffb356a01da30c8c8d197cfc277a24674ef.zip
payments ts
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);