[][src]Trait sc_offchain::NetworkProvider

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

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

Required methods

fn set_authorized_peers(&self, peers: HashSet<PeerId>)

Set the authorized peers.

fn set_authorized_only(&self, reserved_only: bool)

Set the authorized only flag.

Loading content...

Implementations on Foreign Types

impl<B, H> NetworkProvider for NetworkService<B, H> where
    B: Block + 'static,
    H: ExHashT
[src]

Loading content...

Implementors

Loading content...