Merge pull request #342 from tomochain/thanhson1085-announce-txs

Add annouce-txs, maxpeers 25
This commit is contained in:
Etienne Napoleone 2018-12-10 11:59:11 +07:00 committed by GitHub
commit e25e64525c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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"
@ -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 \