From 4a8fcdf04d1291701e66180eef4a8deb378a599e Mon Sep 17 00:00:00 2001 From: Silja Petasch <78182344+siljapetasch@users.noreply.github.com> Date: Wed, 9 Jul 2025 16:35:11 +0200 Subject: [PATCH 1/4] Update consensus-config.mdx docs: document p2p.sync.onlyreqtostatic flag for restricting sync to static peers --- .../node-operators/configuration/consensus-config.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/operators/node-operators/configuration/consensus-config.mdx b/pages/operators/node-operators/configuration/consensus-config.mdx index 58f4f1dae..561916882 100644 --- a/pages/operators/node-operators/configuration/consensus-config.mdx +++ b/pages/operators/node-operators/configuration/consensus-config.mdx @@ -636,6 +636,15 @@ only a single connection per peer is maintained. `OP_NODE_P2P_STATIC=/ip4/127.0.0.1/tcp/9222/p2p/16Uiu2HAm2y6DXp6THWHCyquczNUh8gVAm4spo6hjP3Ns1dGRiAdE` +### p2p.sync.onlyreqtostatic +Restricts `RequestL2Range` sync requests to static peers only. Useful for enforcing trusted peer sync. When enabled, non-static peers are skipped during sync. Default is `false`. + + +`--p2p.sync.onlyreqtostatic=[true|false]` +`--p2p.sync.onlyreqtostatic=true` +`OP_NODE_P2P_SYNC_ONLYREQTOSTATIC=true` + + ### p2p.sync.req-resp Enables P2P req-resp alternative sync method, on both server and client side. Default is `true`. From 61eb6203d7c5b0c55d2919ca3e0f255928307d08 Mon Sep 17 00:00:00 2001 From: siljapetasch Date: Wed, 9 Jul 2025 17:01:08 +0200 Subject: [PATCH 2/4] fix linting --- words.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/words.txt b/words.txt index ef1614cb0..1e334fde3 100644 --- a/words.txt +++ b/words.txt @@ -90,9 +90,9 @@ datacap DATACAP datadir DATADIR -delegatecall Defi Defillama's +delegatecall devnet Devnet devnets @@ -266,6 +266,7 @@ Numba NVME offchain Offchain +onlyreqtostatic opchaina opchainb opcm From c64178e0ac12345ee6bcffcf213d230110ae7713 Mon Sep 17 00:00:00 2001 From: siljapetasch Date: Wed, 9 Jul 2025 17:08:37 +0200 Subject: [PATCH 3/4] fix indentation --- .../node-operators/configuration/consensus-config.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/operators/node-operators/configuration/consensus-config.mdx b/pages/operators/node-operators/configuration/consensus-config.mdx index 561916882..bf4b25de4 100644 --- a/pages/operators/node-operators/configuration/consensus-config.mdx +++ b/pages/operators/node-operators/configuration/consensus-config.mdx @@ -640,9 +640,9 @@ only a single connection per peer is maintained. Restricts `RequestL2Range` sync requests to static peers only. Useful for enforcing trusted peer sync. When enabled, non-static peers are skipped during sync. Default is `false`. -`--p2p.sync.onlyreqtostatic=[true|false]` -`--p2p.sync.onlyreqtostatic=true` -`OP_NODE_P2P_SYNC_ONLYREQTOSTATIC=true` + `--p2p.sync.onlyreqtostatic=[true|false]` + `--p2p.sync.onlyreqtostatic=true` + `OP_NODE_P2P_SYNC_ONLYREQTOSTATIC=true` ### p2p.sync.req-resp From 6e94e14d03409f3998fbc284605ee088d4a3b9ce Mon Sep 17 00:00:00 2001 From: siljapetasch Date: Wed, 9 Jul 2025 17:13:05 +0200 Subject: [PATCH 4/4] add spacing --- .../operators/node-operators/configuration/consensus-config.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/operators/node-operators/configuration/consensus-config.mdx b/pages/operators/node-operators/configuration/consensus-config.mdx index bf4b25de4..bbb0c1bb2 100644 --- a/pages/operators/node-operators/configuration/consensus-config.mdx +++ b/pages/operators/node-operators/configuration/consensus-config.mdx @@ -637,6 +637,7 @@ only a single connection per peer is maintained. ### p2p.sync.onlyreqtostatic + Restricts `RequestL2Range` sync requests to static peers only. Useful for enforcing trusted peer sync. When enabled, non-static peers are skipped during sync. Default is `false`.