mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
enable btct and btcctl mainnet to be invoked from docker
This commit is contained in:
parent
55b580f2b8
commit
a75914fbe1
@ -43,10 +43,17 @@ RPCUSER=$(set_default "$RPCUSER" "devuser")
|
||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||
|
||||
exec btcctl \
|
||||
"--$NETWORK" \
|
||||
--rpccert="/rpc/rpc.cert" \
|
||||
--rpcuser="$RPCUSER" \
|
||||
--rpcpass="$RPCPASS" \
|
||||
--rpcserver="rpcserver" \
|
||||
"$@"
|
||||
PARAMS=""
|
||||
if [ "$NETWORK" != "mainnet" ]; then
|
||||
PARAMS=$(echo --$NETWORK)
|
||||
fi
|
||||
|
||||
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")
|
||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||
|
||||
PARAMS=$(echo \
|
||||
"--$NETWORK" \
|
||||
PARAMS=""
|
||||
if [ "$NETWORK" != "mainnet" ]; then
|
||||
PARAMS=$(echo --$NETWORK)
|
||||
fi
|
||||
|
||||
PARAMS=$(echo $PARAMS \
|
||||
"--debuglevel=$DEBUG" \
|
||||
"--rpcuser=$RPCUSER" \
|
||||
"--rpcpass=$RPCPASS" \
|
||||
|
Loading…
Reference in New Issue
Block a user