mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
add --tomo-testnet if chainid is testnet
This commit is contained in:
parent
10d04fff11
commit
bb3c66baf6
1 changed files with 2 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ accountsCount=$(
|
||||||
|
|
||||||
# file to env
|
# file to env
|
||||||
for env in IDENTITY PASSWORD PRIVATE_KEY BOOTNODES WS_SECRET NETSTATS_HOST \
|
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")
|
file=$(eval echo "\$${env}_FILE")
|
||||||
if [[ -f $file ]] && [[ ! -z $file ]]; then
|
if [[ -f $file ]] && [[ ! -z $file ]]; then
|
||||||
echo "Replacing $env by $file"
|
echo "Replacing $env by $file"
|
||||||
|
|
@ -55,6 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then
|
||||||
;;
|
;;
|
||||||
89 )
|
89 )
|
||||||
genesisPath="testnet.json"
|
genesisPath="testnet.json"
|
||||||
|
params="$params --tomo-testnet"
|
||||||
;;
|
;;
|
||||||
90 )
|
90 )
|
||||||
genesisPath="devnet.json"
|
genesisPath="devnet.json"
|
||||||
|
|
@ -144,11 +145,6 @@ if [[ ! -z $ANNOUNCE_TXS ]]; then
|
||||||
params="$params --announce-txs"
|
params="$params --announce-txs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# testnet only
|
|
||||||
if [[ ! -z $TOMO_TESTNET ]]; then
|
|
||||||
params="$params --tomo-testnet"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dump
|
# dump
|
||||||
echo "dump: $IDENTITY $account $BOOTNODES"
|
echo "dump: $IDENTITY $account $BOOTNODES"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue