mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
Add debug mode
This commit is contained in:
parent
9250beba44
commit
d14229e4ae
1 changed files with 9 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# vars from docker env
|
# vars from docker env
|
||||||
# - IDENTITY (default to empty)
|
# - IDENTITY (default to empty)
|
||||||
|
|
@ -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; do
|
NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS STORE_REWARD DEBUG_MODE; 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 --XDC-testnet --gcmode archive --rpcapi db,eth,net,web3,personal,debug"
|
||||||
;;
|
;;
|
||||||
90 )
|
90 )
|
||||||
genesisPath="devnet.json"
|
genesisPath="devnet.json"
|
||||||
|
|
@ -98,7 +99,7 @@ if [[ $accountsCount -le 0 ]]; then
|
||||||
--datadir $DATA_DIR \
|
--datadir $DATA_DIR \
|
||||||
--keystore $KEYSTORE_DIR \
|
--keystore $KEYSTORE_DIR \
|
||||||
--password ./password
|
--password ./password
|
||||||
rm ./private_key
|
rm ./private_key
|
||||||
else
|
else
|
||||||
echo "Creating new account"
|
echo "Creating new account"
|
||||||
XDC account new \
|
XDC account new \
|
||||||
|
|
@ -149,6 +150,11 @@ 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"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue