Merge pull request #2466 from yancyribbens/enable-docker-mainnet
enable btcd and btcctl mainnet to be invoked from docker
This commit is contained in:
commit
7df0e6fafe
@ -43,10 +43,17 @@ RPCUSER=$(set_default "$RPCUSER" "devuser")
|
|||||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||||
|
|
||||||
exec btcctl \
|
PARAMS=""
|
||||||
"--$NETWORK" \
|
if [ "$NETWORK" != "mainnet" ]; then
|
||||||
--rpccert="/rpc/rpc.cert" \
|
PARAMS=$(echo --$NETWORK)
|
||||||
--rpcuser="$RPCUSER" \
|
fi
|
||||||
--rpcpass="$RPCPASS" \
|
|
||||||
--rpcserver="rpcserver" \
|
PARAMS=$(echo $PARAMS \
|
||||||
"$@"
|
"--rpccert=/rpc/rpc.cert" \
|
||||||
|
"--rpcuser=$RPCUSER" \
|
||||||
|
"--rpcpass=$RPCPASS" \
|
||||||
|
"--rpcserver=rpcserver" \
|
||||||
|
)
|
||||||
|
|
||||||
|
PARAMS="$PARAMS $@"
|
||||||
|
exec btcctl $PARAMS
|
||||||
|
@ -44,8 +44,12 @@ RPCPASS=$(set_default "$RPCPASS" "devpass")
|
|||||||
DEBUG=$(set_default "$DEBUG" "info")
|
DEBUG=$(set_default "$DEBUG" "info")
|
||||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||||
|
|
||||||
PARAMS=$(echo \
|
PARAMS=""
|
||||||
"--$NETWORK" \
|
if [ "$NETWORK" != "mainnet" ]; then
|
||||||
|
PARAMS=$(echo --$NETWORK)
|
||||||
|
fi
|
||||||
|
|
||||||
|
PARAMS=$(echo $PARAMS \
|
||||||
"--debuglevel=$DEBUG" \
|
"--debuglevel=$DEBUG" \
|
||||||
"--rpcuser=$RPCUSER" \
|
"--rpcuser=$RPCUSER" \
|
||||||
"--rpcpass=$RPCPASS" \
|
"--rpcpass=$RPCPASS" \
|
||||||
|
Loading…
Reference in New Issue
Block a user