Skip to content

Commit

Permalink
clients/lodestar-bn: Add optional flag to disable peer scoring (ether…
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz authored and Eikix committed Mar 1, 2024
1 parent 72d3ee7 commit 1d7c780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/lodestar-bn/lodestar_bn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ bootnodes_option=$([[ "$HIVE_ETH2_BOOTNODE_ENRS" == "" ]] && echo "" || echo "--
metrics_option=$([[ "$HIVE_ETH2_METRICS_PORT" == "" ]] && echo "" || echo "--metrics --metrics.address=$CONTAINER_IP --metrics.port=$HIVE_ETH2_METRICS_PORT")
builder_option=$([[ "$HIVE_ETH2_BUILDER_ENDPOINT" == "" ]] && echo "" || echo "--builder --builder.urls $HIVE_ETH2_BUILDER_ENDPOINT")
echo BUILDER=$builder_option
peer_score_option=$([[ "$HIVE_ETH2_DISABLE_PEER_SCORING" == "" ]] && echo "" || echo "--disablePeerScoring")

echo "bootnodes option : ${bootnodes_option}"

Expand All @@ -64,6 +65,7 @@ node /usr/app/node_modules/.bin/lodestar \
$metrics_option \
$bootnodes_option \
$builder_option \
$peer_score_option \
--enr.ip="${CONTAINER_IP}" \
--enr.tcp="${HIVE_ETH2_P2P_TCP_PORT:-9000}" \
--enr.udp="${HIVE_ETH2_P2P_UDP_PORT:-9000}" \
Expand Down

0 comments on commit 1d7c780

Please sign in to comment.