Skip to content

Commit

Permalink
Merge pull request #101 from HorizenOfficial/release_1_3_1
Browse files Browse the repository at this point in the history
bug: Set default value for FORGER_MAXCONNECTIONS
  • Loading branch information
otoumas authored Mar 18, 2024
2 parents ee1a5c3 + 1cb8efc commit 5add04f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dockerfiles/evmapp/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MAX_INCOMING_CONNECTIONS=""
MAX_OUTGOING_CONNECTIONS=""
WS_ADDRESS=""
ONLY_CONNECT_TO_KNOWN_PEERS=""
FORGER_MAXCONNECTIONS="100"
FORGER_MAXCONNECTIONS=""
FORGER_REWARD_ADDRESS=""
LOG4J_CUSTOM_CONFIG=""

Expand Down Expand Up @@ -238,11 +238,7 @@ if [ -n "${SCNODE_FORGER_REWARD_ADDRESS:-}" ]; then
fi
export FORGER_REWARD_ADDRESS

# Checking SCNODE_FORGER_MAXCONNECTIONS
if [ -n "${SCNODE_FORGER_MAXCONNECTIONS:-}" ]; then
FORGER_MAXCONNECTIONS="$(echo -en "\n maxForgerConnections = ${SCNODE_FORGER_MAXCONNECTIONS}")"
fi

FORGER_MAXCONNECTIONS="$(echo -en "\n maxForgerConnections = ${SCNODE_FORGER_MAXCONNECTIONS:-100}")"
export FORGER_MAXCONNECTIONS

# setting onlyConnectToKnownPeers if provided
Expand Down

0 comments on commit 5add04f

Please sign in to comment.