diff --git a/electrum/daemon.py b/electrum/daemon.py index b0d04f40c..ccedd9248 100644 --- a/electrum/daemon.py +++ b/electrum/daemon.py @@ -463,6 +463,7 @@ class Daemon(Logger): return wallet @staticmethod + @profiler def _load_wallet( path, password, diff --git a/electrum/invoices.py b/electrum/invoices.py index 52fbeb68f..0933cba6c 100644 --- a/electrum/invoices.py +++ b/electrum/invoices.py @@ -196,7 +196,8 @@ class Invoice(StoredObject): @lightning_invoice.validator def _validate_invoice_str(self, attribute, value): if value is not None: - lndecode(value) # this checks the str can be decoded + lnaddr = lndecode(value) # this checks the str can be decoded + self.__lnaddr = lnaddr # save it, just to avoid having to recompute later @amount_msat.validator def _validate_amount(self, attribute, value):