You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1012 B
38 lines
1012 B
#!/bin/bash
|
|
set -e
|
|
|
|
whirlpool_options=(
|
|
--listen
|
|
--cli.api.http-enable=true
|
|
--cli.api.http-port=8898
|
|
--cli.dojo.enabled=true
|
|
--cli.tor=true
|
|
--cli.torConfig.executable=/usr/local/bin/tor
|
|
--cli.torConfig.coordinator.enabled=true
|
|
--cli.torConfig.coordinator.onion=true
|
|
--cli.torConfig.backend.enabled=false
|
|
--cli.torConfig.backend.onion=false
|
|
)
|
|
|
|
if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then
|
|
whirlpool_options+=(--cli.server="TESTNET")
|
|
whirlpool_options+=(--cli.dojo.url="http://172.30.1.3:80/test/v2/")
|
|
else
|
|
whirlpool_options+=(--cli.server="MAINNET")
|
|
whirlpool_options+=(--cli.dojo.url="http://172.30.1.3:80/v2/")
|
|
fi
|
|
|
|
if [ "$WHIRLPOOL_RESYNC" == "on" ]; then
|
|
whirlpool_options+=(--resync)
|
|
fi
|
|
|
|
if [ "$WHIRLPOOL_DEBUG" == "on" ]; then
|
|
whirlpool_options+=(--debug)
|
|
fi
|
|
|
|
if [ "$WHIRLPOOL_DEBUG_CLIENT" == "on" ]; then
|
|
whirlpool_options+=(--debug-client)
|
|
fi
|
|
|
|
cd /home/whirlpool/.whirlpool-cli
|
|
java -jar /usr/local/whirlpool-cli/whirlpool-client-cli-run.jar "${whirlpool_options[@]}"
|
|
|