#!/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.backend.enabled=false --cli.torConfig.backend.onion=false --cli.mix.liquidityClient=false ) if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then whirlpool_options+=(--cli.server="TESTNET") whirlpool_options+=(--cli.dojo.url="http://$NET_WHIRL_NGINX_IPV4:80/test/v2/") else whirlpool_options+=(--cli.server="MAINNET") whirlpool_options+=(--cli.dojo.url="http://$NET_WHIRL_NGINX_IPV4:80/v2/") fi if [ "$WHIRLPOOL_COORDINATOR_ONION" == "on" ]; then whirlpool_options+=(--cli.torConfig.coordinator.onion=true) else whirlpool_options+=(--cli.torConfig.coordinator.onion=false) 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[@]}"