Skip to content

Commit b29729e

Browse files
authored
fix: more concise error message for Boltz on simnet (#694)
* fix: more concise error message for Boltz on simnet * fix: make deposit command non case sensitive
1 parent dd2a1b7 commit b29729e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

images/boltz/wrapper.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
CHAIN=$1
44

5-
case "$CHAIN" in
5+
# Use "${<variable>,,}" to convert the CHAIN variable to lower case
6+
# Reference: https://stackoverflow.com/a/2264537
7+
case "${CHAIN,,}" in
68
"btc")
79
PORT="9002"
810
;;

images/utils/launcher/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ def handle_command(self, cmd):
193193
print(HELP)
194194
else:
195195
self.delegate_cmd_to_xucli(cmd)
196+
196197
except NodeNotFound as e:
198+
if str(e) == "boltz" and self.config.network == "simnet":
199+
print("Not available on simnet")
200+
return
201+
197202
print(f"Node not found: {e}")
198203
except ArgumentError as e:
199204
print(e.usage)

0 commit comments

Comments
 (0)