From f30ca2cf43738a5fc99ac25de0591712007a2a30 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Fri, 9 Sep 2022 16:03:02 +0200 Subject: [PATCH] lndhub: remove delays (#954) Remove the delays in gettxs and getuserinvoices calls to support wallets that use the lndhub extension. --- lnbits/extensions/lndhub/views_api.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lnbits/extensions/lndhub/views_api.py b/lnbits/extensions/lndhub/views_api.py index 91371f9af..8cbe5a6bf 100644 --- a/lnbits/extensions/lndhub/views_api.py +++ b/lnbits/extensions/lndhub/views_api.py @@ -132,8 +132,6 @@ async def lndhub_gettxs( ): await payment.check_status() - await asyncio.sleep(0.1) - return [ { "payment_preimage": payment.preimage, @@ -180,7 +178,6 @@ async def lndhub_getuserinvoices( await invoice.set_pending( (await WALLET.get_invoice_status(invoice.checking_id)).pending ) - await asyncio.sleep(0.1) return [ {