Skip to content

Commit 4a8fcdf

Browse files
authored
Update consensus-config.mdx
docs: document p2p.sync.onlyreqtostatic flag for restricting sync to static peers
1 parent afe1950 commit 4a8fcdf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/operators/node-operators/configuration/consensus-config.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,15 @@ only a single connection per peer is maintained.
636636
<Tabs.Tab>`OP_NODE_P2P_STATIC=/ip4/127.0.0.1/tcp/9222/p2p/16Uiu2HAm2y6DXp6THWHCyquczNUh8gVAm4spo6hjP3Ns1dGRiAdE`</Tabs.Tab>
637637
</Tabs>
638638

639+
### p2p.sync.onlyreqtostatic
640+
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`.
641+
642+
<Tabs items={['Syntax', 'Example', 'Environment Variable']}>
643+
<Tabs.Tab>`--p2p.sync.onlyreqtostatic=[true|false]`</Tabs.Tab>
644+
<Tabs.Tab>`--p2p.sync.onlyreqtostatic=true`</Tabs.Tab>
645+
<Tabs.Tab>`OP_NODE_P2P_SYNC_ONLYREQTOSTATIC=true`</Tabs.Tab>
646+
</Tabs>
647+
639648
### p2p.sync.req-resp
640649

641650
Enables P2P req-resp alternative sync method, on both server and client side. Default is `true`.

0 commit comments

Comments
 (0)