mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-16 13:00:52 +02:00
'Refactored by Sourcery'
This commit is contained in:
parent
e181af6a3b
commit
e1dee67fbb
1 changed files with 3 additions and 3 deletions
|
|
@ -2259,7 +2259,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
|
||||
|
|
@ -2292,7 +2292,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
|
||||
|
|
@ -2334,7 +2334,7 @@ def APILnbit():
|
|||
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