From 33ff958628fef2ad5b72744ac3a40170bdf3cea5 Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Thu, 27 Dec 2018 18:28:11 +0700 Subject: [PATCH 1/2] Update entrypoint.sh --- docker/tomochain/entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/tomochain/entrypoint.sh b/docker/tomochain/entrypoint.sh index 4f615b188a..a993e18d44 100755 --- a/docker/tomochain/entrypoint.sh +++ b/docker/tomochain/entrypoint.sh @@ -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" @@ -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" From 0ba517cc30b8b2675c5ab044e8795bb999e19098 Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Thu, 27 Dec 2018 18:29:48 +0700 Subject: [PATCH 2/2] Update entrypoint.sh --- docker/tomochain/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/tomochain/entrypoint.sh b/docker/tomochain/entrypoint.sh index a993e18d44..9b41a752a5 100755 --- a/docker/tomochain/entrypoint.sh +++ b/docker/tomochain/entrypoint.sh @@ -145,7 +145,7 @@ if [[ ! -z $ANNOUNCE_TXS ]]; then params="$params --announce-txs" fi -# annonce txs +# store reward if [[ ! -z $STORE_REWARD ]]; then params="$params --store-reward" fi