From af5a158e722daeb97bb0417379506e326deb450c Mon Sep 17 00:00:00 2001
From: Pierre Krieger <pierre.krieger1708@gmail.com>
Date: Sat, 10 Apr 2021 00:02:49 +0200
Subject: [PATCH] Remove hack around Yamux window size (#2692)

Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com>
---
 polkadot/node/service/src/lib.rs | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs
index fb31b808bbd..a79f4668e53 100644
--- a/polkadot/node/service/src/lib.rs
+++ b/polkadot/node/service/src/lib.rs
@@ -734,15 +734,6 @@ pub fn new_full<RuntimeApi, Executor>(
 		config.network.extra_sets.extend(peer_sets_info(is_authority));
 	}
 
-	// TODO: At the moment, the collator protocol uses notifications protocols to download
-	// collations. Because of DoS-protection measures, notifications protocols have a very limited
-	// bandwidth capacity, resulting in the collation download taking a long time.
-	// The lines of code below considerably relaxes this DoS protection in order to circumvent
-	// this problem. This configuraiton change should preferably not reach any live network, and
-	// should be removed once the collation protocol is finished.
-	// Tracking issue: https://github.com/paritytech/polkadot/issues/2283
-	config.network.yamux_window_size = Some(5 * 1024 * 1024);
-
 	config.network.request_response_protocols.push(sc_finality_grandpa_warp_sync::request_response_config_for_chain(
 		&config, task_manager.spawn_handle(), backend.clone(), import_setup.1.shared_authority_set().clone(),
 	));
-- 
GitLab