Trait sc_offchain::NetworkProvider[][src]

pub trait NetworkProvider: NetworkStateInfo {
    fn set_authorized_peers(&self, peers: HashSet<PeerId>);
fn set_authorized_only(&self, reserved_only: bool); }
Expand description

NetworkProvider provides OffchainWorkers with all necessary hooks into the underlying Substrate networking.

Required methods

Set the authorized peers.

Set the authorized only flag.

Implementations on Foreign Types

Implementors