Skip to content
Commit ff86ca44 authored by Toralf Wittner's avatar Toralf Wittner
Browse files

Use a Kademlia instance per `ProtocolId`.

This PR changes discovery to use one kademlia instance per protocol
ID. The change is motivated by the fact that the single DHT we use
now includes incompatible nodes with different protocols.

To retain backwards compatibility we currently use a fake `ProtocolId`
matching the existing `/ipfs/kad/1.0.0` protocol string. If and when
this change is rolled out we can remove it and work solely with
`ProtocolId`s taken from the chain specification.
parent 41bb2193
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment