diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index e09fb9d9..7f91d01a 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 85a0dfb1..62f2bc44 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: