Skip to content
Unverified Commit 3399bc09 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

network/discovery: Add to DHT only peers that support genesis-based protocol (#3833)

This PR adds to the DHT only the peers that support the genesis/fork/kad
protocol.
Before this PR, any peer that supported the legacy `/kad/[id]` protocol
was added to the DHT.

This is the first step in removing the support for the legacy kad
protocols.

While I have adjusted unit tests to validate the appropriate behavior,
this still needs proper testing in our stack.

Part of https://github.com/paritytech/polkadot-sdk/issues/504

.

cc @paritytech/networking

---------

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 4adfa37d
Pipeline #475325 waiting for manual action with stages
in 29 minutes and 9 seconds