This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Allow passing a NetworkBehaviour trait implementation to customize the networking #4751
Labels
J0-enhancement
An additional feature request.
While
sc-network
now has a easy-to-use gossiping API (#4284), there are situations, such as substrate-lfs, where you want to have more low-level control over the networking.Libp2p provides a
NetworkBehaviour
trait that does that and that is designed to be combined with otherNetworkBehaviour
.We should add a way for a user to "inject" a
NetworkBehaviour
intosc-network
.Substrate already implements its own
NetworkBehaviour
s, and they would then be combined with the one provided by the user.The text was updated successfully, but these errors were encountered: