Skip to content

Commit 1d7c780

Browse files
marioevzEikix
authored andcommitted
clients/lodestar-bn: Add optional flag to disable peer scoring (ethereum#911)
1 parent 72d3ee7 commit 1d7c780

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clients/lodestar-bn/lodestar_bn.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ bootnodes_option=$([[ "$HIVE_ETH2_BOOTNODE_ENRS" == "" ]] && echo "" || echo "--
3838
metrics_option=$([[ "$HIVE_ETH2_METRICS_PORT" == "" ]] && echo "" || echo "--metrics --metrics.address=$CONTAINER_IP --metrics.port=$HIVE_ETH2_METRICS_PORT")
3939
builder_option=$([[ "$HIVE_ETH2_BUILDER_ENDPOINT" == "" ]] && echo "" || echo "--builder --builder.urls $HIVE_ETH2_BUILDER_ENDPOINT")
4040
echo BUILDER=$builder_option
41+
peer_score_option=$([[ "$HIVE_ETH2_DISABLE_PEER_SCORING" == "" ]] && echo "" || echo "--disablePeerScoring")
4142

4243
echo "bootnodes option : ${bootnodes_option}"
4344

@@ -64,6 +65,7 @@ node /usr/app/node_modules/.bin/lodestar \
6465
$metrics_option \
6566
$bootnodes_option \
6667
$builder_option \
68+
$peer_score_option \
6769
--enr.ip="${CONTAINER_IP}" \
6870
--enr.tcp="${HIVE_ETH2_P2P_TCP_PORT:-9000}" \
6971
--enr.udp="${HIVE_ETH2_P2P_UDP_PORT:-9000}" \

0 commit comments

Comments
 (0)