Trait sc_offchain::NetworkProvider [−][src]
NetworkProvider provides OffchainWorkers
with all necessary hooks into the
underlying Substrate networking.
Required methods
fn set_authorized_peers(&self, peers: HashSet<PeerId>)
[src]
Set the authorized peers.
fn set_authorized_only(&self, reserved_only: bool)
[src]
Set the authorized only flag.
Implementations on Foreign Types
impl<B, H> NetworkProvider for NetworkService<B, H> where
B: Block + 'static,
H: ExHashT,
[src]
B: Block + 'static,
H: ExHashT,