Skip to content

Commit

Permalink
add --tomo-testnet if chainid is testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone authored Dec 24, 2018
1 parent 10d04ff commit bb3c66b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docker/tomochain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -55,6 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then
;;
89 )
genesisPath="testnet.json"
params="$params --tomo-testnet"
;;
90 )
genesisPath="devnet.json"
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit bb3c66b

Please sign in to comment.