Skip to content

Commit

Permalink
Merge pull request #446 from tomochain/thanhson1085-debug-mode
Browse files Browse the repository at this point in the history
Add debug mode
  • Loading branch information
thanhson1085 authored Feb 18, 2019
2 parents 11ee704 + e16f11b commit bbda78f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/tomochain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -150,6 +150,11 @@ 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"

Expand Down

0 comments on commit bbda78f

Please sign in to comment.