Remove backwards-compatibility networking hack (#8068)

* Remove backwards-compatibility networking hack

* Fix compilation

* Try fix
This commit is contained in:
Pierre Krieger
2021-02-08 14:44:34 +01:00
committed by GitHub
parent 884d916559
commit 1eeafdd2b3
2 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -676,10 +676,10 @@ pub fn grandpa_peers_set_config() -> sc_network::config::NonDefaultSetConfig {
// Notifications reach ~256kiB in size at the time of writing on Kusama and Polkadot.
max_notification_size: 1024 * 1024,
set_config: sc_network::config::SetConfig {
in_peers: 25,
out_peers: 25,
in_peers: 0,
out_peers: 0,
reserved_nodes: Vec::new(),
non_reserved_mode: sc_network::config::NonReservedPeerMode::Accept,
non_reserved_mode: sc_network::config::NonReservedPeerMode::Deny,
},
}
}