wormchain - peer-exchange reactor off by default

This commit is contained in:
justinschuldt 2023-01-19 16:15:24 -06:00 committed by Justin Schuldt
parent 1f8055adfa
commit 1f939ea2dd
3 changed files with 3 additions and 2 deletions

View File

@ -249,7 +249,7 @@ send_rate = 5120000
recv_rate = 5120000
# Set true to enable the peer-exchange reactor
pex = true
pex = false
# Seed mode, in which node constantly crawls the network and looks for
# peers. If another node asks it for addresses, it responds and disconnects.

View File

@ -249,7 +249,7 @@ send_rate = 5120000
recv_rate = 5120000
# Set true to enable the peer-exchange reactor
pex = true
pex = false
# Seed mode, in which node constantly crawls the network and looks for
# peers. If another node asks it for addresses, it responds and disconnects.

View File

@ -43,6 +43,7 @@ sed -i "s/external_address = \"\"/external_address = \"${hostname}:26656\"/g" ${
if [ $instance -eq 0 ] && [ $NUM_GUARDIANS -ge 2 ]; then
echo "$hostname: enabling seed mode in config.toml."
sed -i "s/pex = false/pex = true/g" ${home_path}/config/config.toml
sed -i "s/seed_mode = false/seed_mode = true/g" ${home_path}/config/config.toml
elif [ $instance -ge 1 ]; then
echo "$hostname: adding seed address to config.toml."