debug added in entrypoint

This commit is contained in:
AnilChinchawale 2019-02-12 04:53:01 +05:30
parent 1adcc815ea
commit fd904fd008

15
docker/XDCchain/entrypoint.sh Normal file → Executable file
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 DEBUG_MODE; do
NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD; do
file=$(eval echo "\$${env}_FILE")
if [[ -f $file ]] && [[ ! -z $file ]]; then
echo "Replacing $env by $file"
@ -55,7 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then
;;
89 )
genesisPath="testnet.json"
params="$params --XDC-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
params="$params --XDC-testnet"
;;
90 )
genesisPath="devnet.json"
@ -150,11 +150,6 @@ if [[ ! -z $STORE_REWARD ]]; then
params="$params --store-reward"
fi
# debug mode
if [[ ! -z $DEBUG_MODE ]]; then
params="$params --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
fi
# dump
echo "dump: $IDENTITY $account $BOOTNODES"
@ -167,7 +162,7 @@ exec XDC $params \
--identity $IDENTITY \
--password ./password \
--port 30303 \
--maxpeers 200 \
--maxpeers 25 \
--txpool.globalqueue 5000 \
--txpool.globalslots 5000 \
--rpc \
@ -180,6 +175,6 @@ exec XDC $params \
--wsport 8546 \
--wsorigins "*" \
--mine \
--gasprice "250000000" \
--gasprice "2500" \
--targetgaslimit "84000000" \
"$@"
"$@"