mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +00:00
debug added in entrypoint
This commit is contained in:
parent
1adcc815ea
commit
fd904fd008
1 changed files with 5 additions and 10 deletions
13
docker/XDCchain/entrypoint.sh
Normal file → Executable file
13
docker/XDCchain/entrypoint.sh
Normal file → Executable file
|
|
@ -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 STORE_REWARD DEBUG_MODE; do
|
NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD; 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,7 +55,7 @@ if [[ ! -z $NETWORK_ID ]]; then
|
||||||
;;
|
;;
|
||||||
89 )
|
89 )
|
||||||
genesisPath="testnet.json"
|
genesisPath="testnet.json"
|
||||||
params="$params --XDC-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
|
params="$params --XDC-testnet"
|
||||||
;;
|
;;
|
||||||
90 )
|
90 )
|
||||||
genesisPath="devnet.json"
|
genesisPath="devnet.json"
|
||||||
|
|
@ -150,11 +150,6 @@ if [[ ! -z $STORE_REWARD ]]; then
|
||||||
params="$params --store-reward"
|
params="$params --store-reward"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# debug mode
|
|
||||||
if [[ ! -z $DEBUG_MODE ]]; then
|
|
||||||
params="$params --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# dump
|
# dump
|
||||||
echo "dump: $IDENTITY $account $BOOTNODES"
|
echo "dump: $IDENTITY $account $BOOTNODES"
|
||||||
|
|
||||||
|
|
@ -167,7 +162,7 @@ exec XDC $params \
|
||||||
--identity $IDENTITY \
|
--identity $IDENTITY \
|
||||||
--password ./password \
|
--password ./password \
|
||||||
--port 30303 \
|
--port 30303 \
|
||||||
--maxpeers 200 \
|
--maxpeers 25 \
|
||||||
--txpool.globalqueue 5000 \
|
--txpool.globalqueue 5000 \
|
||||||
--txpool.globalslots 5000 \
|
--txpool.globalslots 5000 \
|
||||||
--rpc \
|
--rpc \
|
||||||
|
|
@ -180,6 +175,6 @@ exec XDC $params \
|
||||||
--wsport 8546 \
|
--wsport 8546 \
|
||||||
--wsorigins "*" \
|
--wsorigins "*" \
|
||||||
--mine \
|
--mine \
|
||||||
--gasprice "250000000" \
|
--gasprice "2500" \
|
||||||
--targetgaslimit "84000000" \
|
--targetgaslimit "84000000" \
|
||||||
"$@"
|
"$@"
|
||||||
Loading…
Reference in a new issue