pub fn new(service: Arc<NetworkService<B, S>>) -> Self {
		let validator = Arc::new(GossipValidator::new());
		let v = validator.clone();
		service.with_gossip(move |gossip, _| {
			gossip.register_validator(GRANDPA_ENGINE_ID, v);
		});
		NetworkBridge { service, validator: validator }
	}
/// Create a new NetworkBridge to the given NetworkService
Create a new NetworkBridge to the given NetworkService
Create a new NetworkBridge to the given NetworkService
pub fn new(service: Arc<NetworkService<B, S>>) -> Self {
		let validator = Arc::new(GossipValidator::new());
		let v = validator.clone();
		service.with_gossip(move |gossip, _| {
			gossip.register_validator(GRANDPA_ENGINE_ID, v);
		});
		NetworkBridge { service, validator: validator }
	}
pub fn new ( service : Arc < NetworkService < B , S > > ) -> Self { let validator = Arc :: new ( GossipValidator :: new ( ) ) ; let v = validator . clone ( ) ; service . with_gossip ( move | gossip , _ | { gossip . register_validator ( GRANDPA_ENGINE_ID , v ) ; } ) ; NetworkBridge { service , validator : validator } }
Create a new NetworkBridge to the given NetworkService
Create a new NetworkBridge to the given NetworkService
service
Arc<NetworkService<B, S>>
service
Arc<NetworkService<B, S>>