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:
committed by
Sander van Grieken
parent
d83149f668
commit
15eb765eac
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user