aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-26 16:03:47 -0700
committerAdam Soltys <[email protected]>2024-09-26 16:03:47 -0700
commit99e2c2b10b183eef998e3517208c1d99714ef295 (patch)
treebe766940adee8d332833efa33560b268dd183a2c /lib
parentd47aebf9edfc9e455e11402c6e93dac29506937a (diff)
downloadcoinos-server-99e2c2b10b183eef998e3517208c1d99714ef295.tar.gz
coinos-server-99e2c2b10b183eef998e3517208c1d99714ef295.zip
check account when crediting
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts2
1 files changed, 1 insertions, 1 deletions
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);