Commit d335674b authored by Bastian Köcher's avatar Bastian Köcher Committed by asynchronous rob
Browse files

Only register one gossip validator for full nodes (#487)

parent 481666bd
Pipeline #54526 failed with stages
in 17 minutes and 51 seconds
......@@ -343,16 +343,6 @@ impl NewLeafActions {
}
}
/// Register a gossip validator for a non-authority node.
pub fn register_non_authority_validator(service: Arc<PolkadotNetworkService>) {
service.with_gossip(|gossip, ctx|
gossip.register_validator(
ctx,
POLKADOT_ENGINE_ID,
Arc::new(substrate_network::consensus_gossip::DiscardAll)),
);
}
/// A registered message validator.
///
/// Create this using `register_validator`.
......
......@@ -269,8 +269,6 @@ pub fn new_full(config: Configuration<CustomConfiguration, GenesisConfig>)
dht_event_rx,
);
service.spawn_task(authority_discovery);
} else {
network_gossip::register_non_authority_validator(service.network());
}
let config = grandpa::Config {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment