testinprod-io / op-erigon

Optimism implementation on the efficiency frontier
https://op-erigon.testinprod.io
GNU Lesser General Public License v3.0
85 stars 14 forks source link

Make discovery v5 as default #178

Closed mininny closed 3 weeks ago

mininny commented 1 month ago

According to optimism spec, disc v5 is used as a default protocol for peer discovery.

This PR makes --v5disc flag enabled by default.

For backwards compatibility, v4 is still always enabled unless explicitly set with --nodiscover flag. Also, setting --nodiscover won't disable v5disc. To completely disable p2p in op-erigon, set both --nodiscover and --v5disc=false.

This is useful when using execution-layer syncing which will soon be available on op-erigon through p2p staged sync.