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] 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 \