Skip to content

Commit 23ad29d

Browse files
committed
bypass tls.cert waiting for external lnds
1 parent 0c8a4c7 commit 23ad29d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

images/utils/launcher/node/xud.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def _get_environment(self) -> List[str]:
5454
]
5555

5656
lndbtc = self.config.nodes["lndbtc"]
57+
env.append("LNDBTC_MODE={}".format(lndbtc["mode"]))
5758
if lndbtc["mode"] == "external":
5859
env.extend([
5960
"LNDBTC_RPC_HOST={}".format(lndbtc["rpc_host"]),
@@ -63,6 +64,7 @@ def _get_environment(self) -> List[str]:
6364
])
6465

6566
lndltc = self.config.nodes["lndltc"]
67+
env.append("LNDLTC_MODE={}".format(lndltc["mode"]))
6668
if lndltc["mode"] == "external":
6769
env.extend([
6870
"LNDLTC_RPC_HOST={}".format(lndbtc["rpc_host"]),

images/xud/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ CONNEXT_IP=$(getent hosts connext || echo '' | awk '{ print $1 }')
6666
echo "$CONNEXT_IP connext" >> /etc/hosts
6767

6868

69-
while [[ ! -e /root/.lndbtc/tls.cert ]]; do
69+
while [[ $LNDBTC_MODE == "native" && ! -e /root/.lndbtc/tls.cert ]]; do
7070
echo "[entrypoint] Waiting for /root/.lndbtc/tls.cert to be created..."
7171
sleep 1
7272
done
7373

74-
while [[ ! -e /root/.lndltc/tls.cert ]]; do
74+
while [[ $LNDLTC_MODE == "native" && ! -e /root/.lndltc/tls.cert ]]; do
7575
echo "[entrypoint] Waiting for /root/.lndltc/tls.cert to be created..."
7676
sleep 1
7777
done

0 commit comments

Comments
 (0)