1
0

move lnaddr.py to lib

This commit is contained in:
ThomasV
2018-06-29 12:33:16 +02:00
parent 4515c859c4
commit 8346e358b2
6 changed files with 5 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ class RequestList(MyTreeView):
self.filter()
# lightning
for payreq_key, r in self.wallet.lnworker.invoices.items():
from electrum.lightning_payencode.lnaddr import lndecode
from electrum.lnaddr import lndecode
import electrum.constants as constants
lnaddr = lndecode(r, expected_hrp=constants.net.SEGWIT_HRP)
amount_sat = lnaddr.amount*COIN if lnaddr.amount else None