From bb3c66baf6e127a5f6a01500bda67253981bf071 Mon Sep 17 00:00:00 2001 From: Etienne Napoleone Date: Mon, 24 Dec 2018 22:00:54 +0700 Subject: [PATCH] add `--tomo-testnet` if chainid is testnet --- docker/tomochain/entrypoint.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/tomochain/entrypoint.sh b/docker/tomochain/entrypoint.sh index 85995ce58e..aafafb2ecb 100755 --- a/docker/tomochain/entrypoint.sh +++ b/docker/tomochain/entrypoint.sh @@ -28,7 +28,7 @@ accountsCount=$( # file to env for env in IDENTITY PASSWORD PRIVATE_KEY BOOTNODES WS_SECRET NETSTATS_HOST \ - NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS TOMO_TESTNET; do + NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS; do file=$(eval echo "\$${env}_FILE") if [[ -f $file ]] && [[ ! -z $file ]]; then echo "Replacing $env by $file" @@ -55,6 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then ;; 89 ) genesisPath="testnet.json" + params="$params --tomo-testnet" ;; 90 ) genesisPath="devnet.json" @@ -144,11 +145,6 @@ if [[ ! -z $ANNOUNCE_TXS ]]; then params="$params --announce-txs" fi -# testnet only -if [[ ! -z $TOMO_TESTNET ]]; then - params="$params --tomo-testnet" -fi - # dump echo "dump: $IDENTITY $account $BOOTNODES"