mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-17 13:07:17 +02:00
'Refactored by Sourcery'
This commit is contained in:
parent
f2448b6222
commit
9ff682666f
1 changed files with 2 additions and 2 deletions
|
|
@ -2276,7 +2276,7 @@ def mempoolmenu():
|
|||
cert_path = lndconnectload["tls"]
|
||||
macaroon = codecs.encode(open(lndconnectload["macaroon"], 'rb').read(), 'hex')
|
||||
headers = {'Grpc-Metadata-macaroon': macaroon}
|
||||
url = 'https://{}/v1/getinfo'.format(lndconnectload["ip_port"])
|
||||
url = f'https://{lndconnectload["ip_port"]}/v1/getinfo'
|
||||
r = requests.get(url, headers=headers, verify=cert_path)
|
||||
alias = r.json()
|
||||
print("""\t\t
|
||||
|
|
@ -2309,7 +2309,7 @@ def mempoolmenuOnchainONLY():
|
|||
cert_path = lndconnectload["tls"]
|
||||
macaroon = codecs.encode(open(lndconnectload["macaroon"], 'rb').read(), 'hex')
|
||||
headers = {'Grpc-Metadata-macaroon': macaroon}
|
||||
url = 'https://{}/v1/getinfo'.format(lndconnectload["ip_port"])
|
||||
url = f'https://{lndconnectload["ip_port"]}/v1/getinfo'
|
||||
r = requests.get(url, headers=headers, verify=cert_path)
|
||||
alias = r.json()
|
||||
print("""\t\t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue