op/geth/fraxtal-mainnet: fix EL peer injection method — change from admin_addStaticPeer to admin_addPeer for op-geth clients

This commit is contained in:
2026-08-06 19:18:08 +00:00
parent d57fd2e644
commit d279ff7274
3 changed files with 6 additions and 3 deletions

View File

@@ -323,7 +323,9 @@ detect_client_type() {
local node_name="$1"
local name_lower=$(echo "$node_name" | tr '[:upper:]' '[:lower:]')
if [[ "$name_lower" == *"geth"* ]]; then
if [[ "$name_lower" == *"op-geth"* ]]; then
echo "op-geth"
elif [[ "$name_lower" == *"geth"* ]]; then
echo "geth"
elif [[ "$name_lower" == *"reth"* ]]; then
echo "reth"
@@ -351,7 +353,7 @@ add_static_peer() {
# Geth supports admin_addStaticPeer
method="admin_addStaticPeer"
else
# Reth and most other clients use admin_addPeer
# Reth, op-geth, and most other clients use admin_addPeer
method="admin_addPeer"
fi