merge issue in lnd_rest

This commit is contained in:
dni ⚡ 2023-04-04 08:00:43 +02:00
parent 2a1a0f3a2f
commit be5f909d1c
No known key found for this signature in database
GPG Key ID: 886317704CC4E618

View File

@ -24,12 +24,6 @@ class LndRestWallet(Wallet):
def __init__(self):
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 = (
settings.lnd_rest_macaroon
@ -50,7 +44,7 @@ class LndRestWallet(Wallet):
endpoint = endpoint[:-1] if endpoint.endswith("/") else 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.macaroon = load_macaroon(macaroon)