From 71c5d390a068da3a56293716489e1502691ea89b Mon Sep 17 00:00:00 2001 From: Sameer Kumar Subudhi Date: Thu, 11 Jun 2026 14:45:27 +0200 Subject: [PATCH 1/3] Add OP_RETH_TRUSTED_PEERS for static EL peers on mainnet and sepolia Document the four Lisk-operated static EL enodes per network as opt-in trusted peers under the snap-sync block, and wire OP_RETH_TRUSTED_PEERS into --trusted-peers in the reth entrypoint. Also replaces the Sepolia bootnode placeholder with a real enode. Co-Authored-By: Claude Opus 4.7 --- .env.mainnet | 1 + .env.sepolia | 5 ++--- reth/reth-entrypoint | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.mainnet b/.env.mainnet index 9eb35913a..b8afd157b 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -44,3 +44,4 @@ OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true # To enable snap sync, uncomment and set the env vars below: # OP_NODE_SYNCMODE=execution-layer # OP_RETH_BOOTNODES=enode://c113be206722079300449e42382bb9d1e123362f2b63d954cba896a3e6741ebe446fdb46ed77a32da1b3288384d36ea17847954b56c36bb28a00f3a689fdf916@35.234.171.144:9003?discport=9004 +# OP_RETH_TRUSTED_PEERS=enode://e879f7b1562666c23c417bd06fdd6d3023a690c3e792cc6904dc33ddd325d821d37ba4acfbd7f9f95a4b48b1578d3321d6fcd1eaa4ec8d8069db9177111653f4@34.147.89.221:30303,enode://c5d312ed7e84f09e7b4b67f3af8153597fa3f098234934200b228949ccd3d1313a8f8e94e1326e47d472341863e7388584ddfc8876bf1fbb038b9532edffc9c0@34.147.89.221:30304,enode://9fa3d46582dbe3b4fd7013f0710fc21b68ddb652eaafc57e06052b21c4137fcd2d05d3b981f9fda7c6253339dde265f3ab3beda2b092804e9f0698c972085d63@34.147.89.221:30403,enode://0a228c523737defec40837f739a2bb136f3a47c57bf6b8d0c6e8be7a1462841bd61d2d8aaf91095e463de4ae8bc1defd255786810034ed9269f4e8bd5b21fa27@34.147.89.221:30404 diff --git a/.env.sepolia b/.env.sepolia index 7524fb448..c8b915108 100644 --- a/.env.sepolia +++ b/.env.sepolia @@ -43,6 +43,5 @@ OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true # NOTE: Snap sync requires reachable peers via the discovery protocol. If no bootnodes/peers are available, sync may stall or fail to start. We recommend running a full or archive node for production. # To enable snap sync, uncomment and set the env vars below: # OP_NODE_SYNCMODE=execution-layer -# TODO: replace the placeholders below with valid Lisk Sepolia bootnodes once available. -# Format: comma-separated enode URLs. -# OP_RETH_BOOTNODES=enode://@:?discport= +# OP_RETH_BOOTNODES=enode://c1408691c25bcdc6b44a706b712a6878252fe8ae46b04b8e03e0a20e4480a88b4e36035cfeb598bba4bd8a15862a7b36888dc7152d98c1c8bb6bd0d956fb08f6@34.141.232.248:9004 +# OP_RETH_TRUSTED_PEERS=enode://4ca62aca0ee190bd489656eaab3b2bafcf620585fba868c021faa8e6283f4bcb002e43cec05cb137276548e8398b2c9bc010fefc93f539f1b8a1c538edfaf40a@34.34.28.137:30303,enode://577e069d969479802b27cb436715db9487841b789b898a1c56e07be84ee5ce7e2d10c03c17d675713c79b20254c5b74d0459de409f22835aedb4d75f4653067d@34.34.28.137:30304,enode://9ba49c519d8d3536aeb1d6c00bda9b94b91ed1579fc07bb64b8327669a3fdc076509229de07bba22f1836bf25d239f1bc3c17f9e4cffe6a115579a3c930df639@34.34.28.137:30403,enode://301d86365a63e833509dc0ef7381fdbf81556555c7bdd1fc29e9e6f852df2264ab287ecc7556d8b1ae39959027cd578401c8657e289f86ae56b0a0e695c00e53@34.34.28.137:30404 diff --git a/reth/reth-entrypoint b/reth/reth-entrypoint index d01d96cd1..5bfeb7530 100755 --- a/reth/reth-entrypoint +++ b/reth/reth-entrypoint @@ -32,6 +32,10 @@ else ADDITIONAL_ARGS="$ADDITIONAL_ARGS --disable-discovery" fi +if [ "${OP_RETH_TRUSTED_PEERS+x}" = x ]; then + ADDITIONAL_ARGS="$ADDITIONAL_ARGS --trusted-peers=$OP_RETH_TRUSTED_PEERS" +fi + # Start service echoBanner "Starting op-reth execution node under '${RETH_DATA_DIR}'..." exec ./op-reth node \ From 2389d91416a19d6c93d627ed814da63c84508ad3 Mon Sep 17 00:00:00 2001 From: Sameer Kumar Subudhi Date: Thu, 11 Jun 2026 14:47:21 +0200 Subject: [PATCH 2/3] Remove fork-sync workflow Co-Authored-By: Claude Opus 4.7 --- .github/workflows/fork-sync.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/fork-sync.yml diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml deleted file mode 100644 index e0aef1d34..000000000 --- a/.github/workflows/fork-sync.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Sync Fork - -on: - schedule: - - cron: '0 0 * * *' # once a day - workflow_dispatch: # on button click - -jobs: - sync: - runs-on: ubuntu-latest - - steps: - - uses: tgymnich/fork-sync@v2.0.10 - with: - owner: base-org - repo: node - head: main - base: main - pr_title: Sync fork repo - pr_message: Merge latest changes from upstream repo From f46b528e14d78260f795b13062d70ea571e0725d Mon Sep 17 00:00:00 2001 From: Sameer Kumar Subudhi Date: Thu, 11 Jun 2026 14:57:49 +0200 Subject: [PATCH 3/3] reth-entrypoint: guard OP_RETH_TRUSTED_PEERS against empty value Avoid emitting a bare --trusted-peers= when the env var is set but empty. Co-Authored-By: Claude Opus 4.7 --- reth/reth-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reth/reth-entrypoint b/reth/reth-entrypoint index 5bfeb7530..6044e52e6 100755 --- a/reth/reth-entrypoint +++ b/reth/reth-entrypoint @@ -32,7 +32,7 @@ else ADDITIONAL_ARGS="$ADDITIONAL_ARGS --disable-discovery" fi -if [ "${OP_RETH_TRUSTED_PEERS+x}" = x ]; then +if [ -n "${OP_RETH_TRUSTED_PEERS:-}" ]; then ADDITIONAL_ARGS="$ADDITIONAL_ARGS --trusted-peers=$OP_RETH_TRUSTED_PEERS" fi