mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +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.
|
/// A registered message validator.
|
||||||
///
|
///
|
||||||
/// Create this using `register_validator`.
|
/// Create this using `register_validator`.
|
||||||
|
|||||||
@@ -269,8 +269,6 @@ pub fn new_full(config: Configuration<CustomConfiguration, GenesisConfig>)
|
|||||||
dht_event_rx,
|
dht_event_rx,
|
||||||
);
|
);
|
||||||
service.spawn_task(authority_discovery);
|
service.spawn_task(authority_discovery);
|
||||||
} else {
|
|
||||||
network_gossip::register_non_authority_validator(service.network());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let config = grandpa::Config {
|
let config = grandpa::Config {
|
||||||
|
|||||||
Reference in New Issue
Block a user