mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 14:55:41 +00:00
Only register one gossip validator for full nodes (#487)
This commit is contained in:
committed by
Robert Habermeier
parent
fee152fa51
commit
11afe6a30c
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user