From 2a8a32984ac3f4420414e65811b71795e3d75de0 Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Mon, 10 Dec 2018 11:41:50 +0700 Subject: [PATCH 1/3] Add annouce-txs, maxpeers 25 annouce-txs, default disable Our masternodes have to enable it, if not, TomoScan, TomoMaster can not receive data from the nodes -> need to update infa repo --- 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 6a1ab2e0b9..e3ef832bfe 100755 --- a/docker/tomochain/entrypoint.sh +++ b/docker/tomochain/entrypoint.sh @@ -139,6 +139,11 @@ else echo "WS_SECRET not set, will not report to netstats server." fi +# annonce txs +if [[ ! -z $ANNOUNCE_TXS ]]; then + params="$params --announce-txs" +fi + # dump echo "dump: $IDENTITY $account $BOOTNODES" @@ -151,7 +156,7 @@ exec tomo $params \ --identity $IDENTITY \ --password ./password \ --port 30303 \ - --maxpeers 50 \ + --maxpeers 25 \ --txpool.globalqueue 5000 \ --txpool.globalslots 5000 \ --rpc \ From f65c863f3e8f8c54ebce7dd91361641e2dce206f Mon Sep 17 00:00:00 2001 From: Etienne Napoleone Date: Mon, 10 Dec 2018 11:50:33 +0700 Subject: [PATCH 2/3] update file to env in entrypoint --- 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 e3ef832bfe..966154d1fc 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; do + NETSTATS_PORT EXTIP SYNC_MODE NETWORK_ID ANNOUNCE_TXS; do file=$(eval echo "\$${env}_FILE") if [[ -f $file ]] && [[ ! -z $file ]]; then echo "Replacing $env by $file" From 90656eb06e57416622b2d2772b8265ae7a655b30 Mon Sep 17 00:00:00 2001 From: etienne-napoleone Date: Mon, 10 Dec 2018 11:58:39 +0700 Subject: [PATCH 3/3] Update node Dockerfile with new env --- Dockerfile.node | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile.node b/Dockerfile.node index ea5ff41ae3..b02c243475 100644 --- a/Dockerfile.node +++ b/Dockerfile.node @@ -27,6 +27,7 @@ ENV NETWORK_ID '89' ENV WS_SECRET '' ENV NETSTATS_HOST 'netstats-server' ENV NETSTATS_PORT '3000' +ENV ANNOUNCE_TXS '' RUN apk add --no-cache ca-certificates