mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 04:22:35 +02:00
fix fake wallet
This commit is contained in:
@@ -20,7 +20,7 @@ from .base import (
|
|||||||
|
|
||||||
class FakeWallet(Wallet):
|
class FakeWallet(Wallet):
|
||||||
queue: asyncio.Queue = asyncio.Queue(0)
|
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(
|
privkey: str = hashlib.pbkdf2_hmac(
|
||||||
"sha256",
|
"sha256",
|
||||||
secret.encode("utf-8"),
|
secret.encode("utf-8"),
|
||||||
@@ -42,9 +42,6 @@ class FakeWallet(Wallet):
|
|||||||
description_hash: Optional[bytes] = None,
|
description_hash: Optional[bytes] = None,
|
||||||
unhashed_description: Optional[bytes] = None,
|
unhashed_description: Optional[bytes] = None,
|
||||||
) -> InvoiceResponse:
|
) -> 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 = {
|
data: Dict = {
|
||||||
"out": False,
|
"out": False,
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
|
Reference in New Issue
Block a user