mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
debug added in entrypoint
This commit is contained in:
parent
1adcc815ea
commit
fd904fd008
1 changed files with 5 additions and 10 deletions
15
docker/XDCchain/entrypoint.sh
Normal file → Executable file
15
docker/XDCchain/entrypoint.sh
Normal file → Executable 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" \
|
||||
"$@"
|
||||
"$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue