mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-06 21:23:05 +02:00
lndhub: remove delays (#954)
Remove the delays in gettxs and getuserinvoices calls to support wallets that use the lndhub extension.
This commit is contained in:
parent
4662a79c3b
commit
f30ca2cf43
@ -132,8 +132,6 @@ async def lndhub_gettxs(
|
|||||||
):
|
):
|
||||||
await payment.check_status()
|
await payment.check_status()
|
||||||
|
|
||||||
await asyncio.sleep(0.1)
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"payment_preimage": payment.preimage,
|
"payment_preimage": payment.preimage,
|
||||||
@ -180,7 +178,6 @@ async def lndhub_getuserinvoices(
|
|||||||
await invoice.set_pending(
|
await invoice.set_pending(
|
||||||
(await WALLET.get_invoice_status(invoice.checking_id)).pending
|
(await WALLET.get_invoice_status(invoice.checking_id)).pending
|
||||||
)
|
)
|
||||||
await asyncio.sleep(0.1)
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user