Skip to content

Commit b53ef31

Browse files
rsercanosercan.ozdemir
andauthored
fix: small status fixes (#673)
* resolves #663 * newline at the end of file * can't connect message changed for connext status Co-authored-by: sercan.ozdemir <[email protected]>
1 parent 16e3f93 commit b53ef31

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

images/utils/launcher/node/connext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_xud_getinfo_connext_status(self):
8181
if status == "Ready":
8282
return "Ready"
8383
elif "ECONNREFUSED" in status:
84-
return "Can't connect to Connext node"
84+
return "Waiting for connext to come up..."
8585
else:
8686
return "Starting..."
8787

images/utils/launcher/node/xud.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ def status(self):
5858
lndltc_status = info["lndMap"][1][1]["status"]
5959
connext_status = info["connext"]["status"]
6060

61+
if "Ready" == lndbtc_status \
62+
or "Ready" == lndltc_status \
63+
or "Ready" == connext_status:
64+
return "Ready"
65+
6166
if "has no active channels" in lndbtc_status \
6267
or "has no active channels" in lndltc_status \
6368
or "has no active channels" in connext_status:
6469
return "Waiting for channels"
65-
66-
if "Ready" == lndbtc_status \
67-
and "Ready" == lndltc_status \
68-
and "Ready" == connext_status:
69-
return "Ready"
7070
else:
7171
not_ready = []
7272
if lndbtc_status != "Ready":

0 commit comments

Comments
 (0)