From 9e60b5374c0336cf78956fb6a4a0c07f4add0813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 5 Dec 2022 12:18:59 +0100 Subject: [PATCH] fake wallet queue issue --- lnbits/app.py | 4 +--- lnbits/wallets/fake.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lnbits/app.py b/lnbits/app.py index 3218f48a..a94207aa 100644 --- a/lnbits/app.py +++ b/lnbits/app.py @@ -47,7 +47,7 @@ def create_app() -> FastAPI: description="API for LNbits, the free and open source bitcoin wallet and accounts system with plugins.", license_info={ "name": "MIT License", - "url": "https://raw.githubusercontent.com/lnbits/lnbits-legend/main/LICENSE", + "url": "https://raw.githubusercontent.com/lnbits/lnbits/main/LICENSE", }, ) @@ -58,8 +58,6 @@ def create_app() -> FastAPI: name="core_static", ) - # needed for lnurlw? - # g().config = settings g().base_url = f"http://{settings.host}:{settings.port}" app.add_middleware( diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index 94ff5f48..73458e8c 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -19,6 +19,7 @@ from .base import ( class FakeWallet(Wallet): + queue: asyncio.Queue = asyncio.Queue(0) secret: str = settings.fake_wallet_secret privkey: str = hashlib.pbkdf2_hmac( "sha256", @@ -97,7 +98,6 @@ class FakeWallet(Wallet): return PaymentStatus(None) async def paid_invoices_stream(self) -> AsyncGenerator[str, None]: - self.queue: asyncio.Queue = asyncio.Queue(0) while True: value: Invoice = await self.queue.get() yield value.payment_hash