From 1f939ea2dd3be6a5488b98b1e0a8e38868707311 Mon Sep 17 00:00:00 2001 From: justinschuldt Date: Thu, 19 Jan 2023 16:15:24 -0600 Subject: [PATCH] wormchain - peer-exchange reactor off by default --- wormchain/devnet/base/config/config.toml | 2 +- wormchain/devnet/client/config/config.toml | 2 +- wormchain/devnet/create-config.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wormchain/devnet/base/config/config.toml b/wormchain/devnet/base/config/config.toml index 162de0603..adaa83cc0 100644 --- a/wormchain/devnet/base/config/config.toml +++ b/wormchain/devnet/base/config/config.toml @@ -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. diff --git a/wormchain/devnet/client/config/config.toml b/wormchain/devnet/client/config/config.toml index 6635a2bc3..d7c15b738 100644 --- a/wormchain/devnet/client/config/config.toml +++ b/wormchain/devnet/client/config/config.toml @@ -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. diff --git a/wormchain/devnet/create-config.sh b/wormchain/devnet/create-config.sh index dc65ff9d7..c6b1f0433 100755 --- a/wormchain/devnet/create-config.sh +++ b/wormchain/devnet/create-config.sh @@ -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."