Skip to content
Snippets Groups Projects
Commit 3d75cc20 authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Companion PR for adding max notification sizes (#2287)

* Companion PR for adding max notification sizes

* Add TODO

* Missing ;

* =>

* Common limit

* "Update Substrate"

Co-authored-by: parity-processbot <>
parent 226af6a8
No related merge requests found
This diff is collapsed.
......@@ -36,9 +36,14 @@ impl PeerSet {
/// network service.
pub fn get_info(self) -> NonDefaultSetConfig {
let protocol = self.into_protocol_name();
// TODO: lower this limit after https://github.com/paritytech/polkadot/issues/2283 is
// done and collations use request-response protocols
let max_notification_size = 16 * 1024 * 1024;
match self {
PeerSet::Validation => NonDefaultSetConfig {
notifications_protocol: protocol,
max_notification_size,
set_config: sc_network::config::SetConfig {
in_peers: 25,
out_peers: 0,
......@@ -48,6 +53,7 @@ impl PeerSet {
},
PeerSet::Collation => NonDefaultSetConfig {
notifications_protocol: protocol,
max_notification_size,
set_config: SetConfig {
in_peers: 25,
out_peers: 0,
......
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