Trait sc_authority_discovery::NetworkProvider[][src]

pub trait NetworkProvider: NetworkStateInfo {
    fn put_value(&self, key: Key, value: Vec<u8>);
fn get_value(&self, key: &Key); }
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.

Required methods

Start putting a value in the Dht.

Start getting a value from the Dht.

Implementations on Foreign Types

Implementors