1
0

payment_identifiers:

- this separates GUI from core handling
 - the PaymentIdentifier class handles network requests
 - the GUI is agnostic about the type of PI
This commit is contained in:
ThomasV
2023-03-19 13:32:43 +01:00
committed by Sander van Grieken
parent d83149f668
commit 15eb765eac
15 changed files with 767 additions and 670 deletions

View File

@@ -7,6 +7,7 @@ import attr
from .json_db import StoredObject, stored_in
from .i18n import _
from .util import age, InvoiceError, format_satoshis
from .payment_identifier import create_bip21_uri
from .lnutil import hex_to_bytes
from .lnaddr import lndecode, LnAddr
from . import constants
@@ -318,7 +319,6 @@ class Request(BaseInvoice):
*,
lightning_invoice: Optional[str] = None,
) -> Optional[str]:
from electrum.util import create_bip21_uri
addr = self.get_address()
amount = self.get_amount_sat()
if amount is not None: