Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 authored Dec 27, 2018
1 parent ebd40c0 commit 33ff958
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; 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"
Expand Down Expand Up @@ -145,6 +145,11 @@ if [[ ! -z $ANNOUNCE_TXS ]]; then
params="$params --announce-txs"
fi

# annonce txs
if [[ ! -z $STORE_REWARD ]]; then
params="$params --store-reward"
fi

# dump
echo "dump: $IDENTITY $account $BOOTNODES"

Expand Down

0 comments on commit 33ff958

Please sign in to comment.