From 475fd566e60f1e7f866ab838a4442146d3317d45 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 8 Jul 2022 11:47:05 +0300 Subject: [PATCH] fix: remove retry logic for pending funds --- lnbits/extensions/satspay/templates/satspay/display.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lnbits/extensions/satspay/templates/satspay/display.html b/lnbits/extensions/satspay/templates/satspay/display.html index bcb23000c..c633546f4 100644 --- a/lnbits/extensions/satspay/templates/satspay/display.html +++ b/lnbits/extensions/satspay/templates/satspay/display.html @@ -343,13 +343,10 @@ } = mempoolJS() try { - const fn = async () => - addressesAPI.getAddressTxsUtxo({ + const utxos = await addressesAPI.getAddressTxsUtxo({ address: this.charge.onchainaddress }) - const utxos = await retryWithDelay(fn) - this.pendingFunds = utxos .filter(u => !u.status.confirmed) .reduce((t, u) => t + u.value, 0)