Open dmitry-markin opened 2 weeks ago
I'll have a go at this one
So I can remove the libp2p dependency but I'm not quite sure how/where to replace with sc-network-types. I don't see libp2p being used anywhere in the sc-authority-discovery directory.
If it is not being used, then the pr would just be about removing the crate and that's it ;)
So I can remove the libp2p dependency but I'm not quite sure how/where to replace with sc-network-types. I don't see libp2p being used anywhere in the sc-authority-discovery directory.
You have to look for re-exported types as well for example the KademliaKey from here: https://github.com/paritytech/polkadot-sdk/blob/master/substrate/client/authority-discovery/src/worker.rs#L45C30-L45C41.
libp2p
types in authority-discovery should be replaced with network backend agnostic types fromsc-network-types
.