diff --git a/polkadot/network/src/gossip.rs b/polkadot/network/src/gossip.rs index 873596a7fc..04f873f0fc 100644 --- a/polkadot/network/src/gossip.rs +++ b/polkadot/network/src/gossip.rs @@ -343,16 +343,6 @@ impl NewLeafActions { } } -/// Register a gossip validator for a non-authority node. -pub fn register_non_authority_validator(service: Arc) { - 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`. diff --git a/polkadot/service/src/lib.rs b/polkadot/service/src/lib.rs index 4258862aca..616d521d65 100644 --- a/polkadot/service/src/lib.rs +++ b/polkadot/service/src/lib.rs @@ -269,8 +269,6 @@ pub fn new_full(config: Configuration) dht_event_rx, ); service.spawn_task(authority_discovery); - } else { - network_gossip::register_non_authority_validator(service.network()); } let config = grandpa::Config {