From a8103ba0913b48338456cb7ed05893a330cb653f Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 2 Mar 2023 09:24:42 +0100 Subject: [PATCH] remove unnecessary checking_id from fakewallet --- lnbits/bolt11.py | 1 - lnbits/wallets/fake.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index e09fb9d98..7f91d01a6 100644 --- a/lnbits/bolt11.py +++ b/lnbits/bolt11.py @@ -30,7 +30,6 @@ class Invoice: secret: Optional[str] = None route_hints: List[Route] = [] min_final_cltv_expiry: int = 18 - checking_id: Optional[str] = None def decode(pr: str) -> Invoice: diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index 85a0dfb14..62f2bc44c 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -80,7 +80,7 @@ class FakeWallet(Wallet): async def pay_invoice(self, bolt11: str, _: int) -> PaymentResponse: invoice = decode(bolt11) - if invoice.checking_id and invoice.checking_id[:6] == self.privkey[:6]: + if invoice.payment_hash[:6] == self.privkey[:6]: await self.queue.put(invoice) return PaymentResponse(True, invoice.payment_hash, 0) else: