gen_config.sh: add MaxPeers default of 50

I think this setting should be more explicit and visible in the config.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-08-24 09:37:44 +02:00 committed by Jakub
parent 714eb416d2
commit b805d0b9f6
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
RPC_PORT="${RPC_PORT:-8545}"
LISTEN_PORT="${LSTEN_PORT:-30303}"
API_MODULES="${API_MODULES:-eth,web3,admin}"
MAX_PEERS="${MAX_PEERS:-50}"
FLEET_NAME="${FLEET_NAME:-eth.prod}"
REGISTER_TOPIC="${REGISTER_TOPIC:-whispermail}"
MAIL_PASSWORD="${MAIL_PASSWORD:-status-offline-inbox}"
@ -28,8 +29,9 @@ JQ_FILTER_ARRAY=(
".ListenAddr = \"0.0.0.0:${LISTEN_PORT}\""
".HTTPEnabled = true"
".HTTPHost = \"0.0.0.0\""
".DataDir = \"${DATA_PATH}\""
".HTTPPort= ${RPC_PORT}"
".MaxPeers = ${MAX_PEERS}"
".DataDir = \"${DATA_PATH}\""
".APIModules = \"${API_MODULES}\""
".RegisterTopics = [\"${REGISTER_TOPIC}\"]"
".WakuConfig.Enabled = true"