merge issue in lnd_rest
This commit is contained in:
parent
2a1a0f3a2f
commit
be5f909d1c
1 changed files with 1 additions and 7 deletions
|
|
@ -24,12 +24,6 @@ class LndRestWallet(Wallet):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
endpoint = settings.lnd_rest_endpoint
|
endpoint = settings.lnd_rest_endpoint
|
||||||
assert endpoint, "lnd_rest_endpoint not set"
|
|
||||||
endpoint = endpoint[:-1] if endpoint.endswith("/") else endpoint
|
|
||||||
endpoint = (
|
|
||||||
f"https://{endpoint}" if not endpoint.startswith("http") else endpoint
|
|
||||||
)
|
|
||||||
self.endpoint = endpoint
|
|
||||||
|
|
||||||
macaroon = (
|
macaroon = (
|
||||||
settings.lnd_rest_macaroon
|
settings.lnd_rest_macaroon
|
||||||
|
|
@ -50,7 +44,7 @@ class LndRestWallet(Wallet):
|
||||||
|
|
||||||
endpoint = endpoint[:-1] if endpoint.endswith("/") else endpoint
|
endpoint = endpoint[:-1] if endpoint.endswith("/") else endpoint
|
||||||
endpoint = (
|
endpoint = (
|
||||||
"https://" + endpoint if not endpoint.startswith("http") else endpoint
|
f"https://{endpoint}" if not endpoint.startswith("http") else endpoint
|
||||||
)
|
)
|
||||||
self.endpoint = endpoint
|
self.endpoint = endpoint
|
||||||
self.macaroon = load_macaroon(macaroon)
|
self.macaroon = load_macaroon(macaroon)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue