NetworkProvider

Trait NetworkProvider 

Source
pub trait NetworkProvider:
    NetworkDHTProvider
    + NetworkStateInfo
    + NetworkSigner
    + Send
    + Sync { }
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§