mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-20 13:28:20 +02:00
Don't check for price to be zero in main module (#86)
This commit is contained in:
parent
4a2961de54
commit
eb5a530da7
1 changed files with 1 additions and 7 deletions
|
|
@ -23,8 +23,6 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def load_lightning_client(config) -> LNDLightningClient:
|
||||
if int(config["server"]["price"]) == 0:
|
||||
return None
|
||||
return LNDLightningClient(
|
||||
config["lnd"]["host"],
|
||||
config["lnd"]["rpc_port"],
|
||||
|
|
@ -36,11 +34,7 @@ def load_lightning_client(config) -> LNDLightningClient:
|
|||
|
||||
|
||||
def load_lightning_host_port(config) -> LNDLightningClient:
|
||||
if int(config["server"]["price"]) == 0:
|
||||
return None
|
||||
lnd_host = config["lnd"]["host"]
|
||||
if "external_host" in config["lnd"]:
|
||||
lnd_host = config["lnd"]["external_host"]
|
||||
lnd_host = config.get("lnd","external_host", fallback=None)
|
||||
lnd_port = int(config["lnd"]["port"])
|
||||
return LightningAddressHostPort(lnd_host, lnd_port,)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue