From 682a297422b882c241449dfadbfd4f28c8248eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 5 Oct 2022 13:08:22 +0200 Subject: [PATCH] fix fake wallet --- lnbits/wallets/fake.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index 5dc266c58..73458e8c4 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -20,7 +20,7 @@ from .base import ( class FakeWallet(Wallet): queue: asyncio.Queue = asyncio.Queue(0) - secret: str = env.str("FAKE_WALLET_SECTRET", default="ToTheMoon1") + secret: str = settings.fake_wallet_secret privkey: str = hashlib.pbkdf2_hmac( "sha256", secret.encode("utf-8"), @@ -42,9 +42,6 @@ class FakeWallet(Wallet): description_hash: Optional[bytes] = None, unhashed_description: Optional[bytes] = None, ) -> InvoiceResponse: - # we set a default secret since FakeWallet is used for internal=True invoices - # and the user might not have configured a secret yet - secret = settings.fake_wallet_secret data: Dict = { "out": False, "amount": amount,