pub trait NetworkProvider: NetworkDHTProvider + NetworkStateInfo + NetworkSigner { }
Expand description

NetworkProvider provides Worker with all necessary hooks into the underlying Substrate networking. Using this trait abstraction instead of sc_network::NetworkService directly is necessary to unit test Worker.

Implementors§