Trait sc_offchain::NetworkProvider
source · [−]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.