From 99e2c2b10b183eef998e3517208c1d99714ef295 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 26 Sep 2024 16:03:47 -0700 Subject: check account when crediting --- lib/payments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/payments.ts') diff --git a/lib/payments.ts b/lib/payments.ts index 4c91266f..3a02bfda 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -782,7 +782,7 @@ export let reconcile = async (account, initial = false) => { let { total_amount } = await node.scanTxOutSet("start", descriptors); total = Math.round(total_amount * SATS); } else { - total = Math.round((await node.getBalance()) * SATS); + total = Math.round((await node.getBalance({ minconf: 1 })) * SATS); } let { balanceAdjustment: memo } = t(user); -- cgit v1.2.3