1
0

turn lightning_payments_completed into dict. Show status of lightning payments in GUI. Make 'listchannels' available offline

This commit is contained in:
ThomasV
2019-01-28 11:14:30 +01:00
parent 26ced1b343
commit b0d6000771
7 changed files with 73 additions and 53 deletions

View File

@@ -41,6 +41,7 @@ except ImportError:
from . import bitcoin, ecc, util, transaction, x509, rsakey
from .util import bh2u, bfh, export_meta, import_meta, make_aiohttp_session
from .util import PR_UNPAID, PR_EXPIRED, PR_PAID, PR_UNKNOWN, PR_INFLIGHT
from .crypto import sha256
from .bitcoin import TYPE_ADDRESS
from .transaction import TxOutput
@@ -65,12 +66,6 @@ def load_ca_list():
# status of payment requests
PR_UNPAID = 0
PR_EXPIRED = 1
PR_UNKNOWN = 2 # sent but not propagated
PR_PAID = 3 # send and propagated
async def get_payment_request(url: str) -> 'PaymentRequest':
u = urllib.parse.urlparse(url)