Add debug mode

This commit is contained in:
Nguyen Sy Thanh Son 2019-02-18 17:40:55 +07:00 committed by GitHub
parent 11ee704229
commit 51d8bcbcb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 STORE_REWARD; do
NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD DEBUG_MODE; do
file=$(eval echo "\$${env}_FILE")
if [[ -f $file ]] && [[ ! -z $file ]]; then
echo "Replacing $env by $file"
@ -55,7 +55,6 @@ if [[ ! -z $NETWORK_ID ]]; then
;;
89 )
genesisPath="testnet.json"
params="$params --tomo-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
;;
90 )
genesisPath="devnet.json"
@ -150,6 +149,11 @@ if [[ ! -z $STORE_REWARD ]]; then
params="$params --store-reward"
fi
# debug mode
if [[ ! -z $DEBUG_MODE ]]; then
params="$params --tomo-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
fi
# dump
echo "dump: $IDENTITY $account $BOOTNODES"