docker: fix ltcd ports

Fixes execution in `start-ltcctl.sh` and simplifies building `PARAMS`


fixes `ltcctl` execution
This commit is contained in:
Bjarne Magnussen committed 2019-11-06 10:05:06 +01:00
1 parent 1a5e39db88
commit 0328348431
5 files changed
+24 -18

No files matched your search

+6 -3
View File
@@ -44,8 +44,12 @@ RPCPASS=$(set_default "$RPCPASS" "devpass")
DEBUG=$(set_default "$DEBUG" "info")
NETWORK=$(set_default "$NETWORK" "simnet")
PARAMS=$(echo \
"--$NETWORK" \
PARAMS=""
if [ "$NETWORK" != "mainnet" ]; then
PARAMS="--$NETWORK"
fi
PARAMS=$(echo $PARAMS \
"--debuglevel=$DEBUG" \
"--rpcuser=$RPCUSER" \
"--rpcpass=$RPCPASS" \
@@ -68,4 +72,3 @@ PARAMS="$PARAMS $@"
# Print command and start bitcoin node.
echo "Command: ltcd $PARAMS"
exec ltcd $PARAMS