Skip to content

Commit d932e12

Browse files
committed
clients/teku-bn: Use hive variable for peer scoring parameters
1 parent c5267fd commit d932e12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clients/teku-bn/teku_bn.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ enr_option=$([[ "$HIVE_ETH2_BOOTNODE_ENRS" == "" ]] && echo "" || echo --p2p-dis
5151
static_option=$([[ "$HIVE_ETH2_STATIC_PEERS" == "" ]] && echo "" || echo --p2p-static-peers="$HIVE_ETH2_STATIC_PEERS")
5252
opt_sync_option=$([[ "$HIVE_ETH2_SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY" == "" ]] && echo "" || echo "--Xnetwork-safe-slots-to-import-optimistically=$HIVE_ETH2_SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY")
5353
builder_option=$([[ "$HIVE_ETH2_BUILDER_ENDPOINT" == "" ]] && echo "" || echo "--validators-builder-registration-default-enabled=true --validators-proposer-blinded-blocks-enabled=true --builder-endpoint=$HIVE_ETH2_BUILDER_ENDPOINT")
54+
peer_score_option=$([[ "$HIVE_ETH2_DISABLE_PEER_SCORING" == "" ]] && echo "" || echo "--Xp2p-gossip-scoring-enabled=false --Xpeer-rate-limit=100000 --Xpeer-request-limit=1000")
5455

5556
if [ "$HIVE_ETH2_MERGE_ENABLED" != "" ]; then
5657
echo -n "0x7365637265747365637265747365637265747365637265747365637265747365" > /jwtsecret
@@ -67,7 +68,7 @@ echo Starting Teku Beacon Node
6768
--eth1-deposit-contract-address="${HIVE_ETH2_CONFIG_DEPOSIT_CONTRACT_ADDRESS:-0x1111111111111111111111111111111111111111}" \
6869
--log-destination console \
6970
--logging="$LOG" \
70-
$metrics_option $eth1_option $merge_option $enr_option $static_option $opt_sync_option $builder_option \
71+
$metrics_option $eth1_option $merge_option $enr_option $static_option $opt_sync_option $builder_option $peer_score_option \
7172
--validators-proposer-default-fee-recipient="0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" \
7273
--p2p-port="${HIVE_ETH2_P2P_TCP_PORT:-9000}" \
7374
--p2p-udp-port="${HIVE_ETH2_P2P_UDP_PORT:-9000}" \
@@ -78,7 +79,5 @@ echo Starting Teku Beacon Node
7879
--rest-api-interface=0.0.0.0 \
7980
--rest-api-port="${HIVE_ETH2_BN_API_PORT:-4000}" \
8081
--rest-api-host-allowlist="*" \
81-
--Xpeer-rate-limit=100000 \
82-
--Xpeer-request-limit=1000 \
8382
--Xstartup-target-peer-count=0 \
8483
--Xtrusted-setup="$trusted_setup_path"

0 commit comments

Comments
 (0)