Add explicit limits to notifications sizes and adjust yamux buffer size (#7925)

* Add explicit limits to notifications sizes and adjust yamux buffer size

* Docfix

* Tests

* Document these 10 bytes
This commit is contained in:
Pierre Krieger authored and GitHub committed 2021-01-19 11:00:37 +00:00
1 parent bb46f8ac30
commit 8e04515912
12 files changed
+125 -51

No files matched your search

+1
View File
@@ -685,6 +685,7 @@ pub trait TestNetFactory: Sized {
network_config.extra_sets = config.notifications_protocols.into_iter().map(|p| {
NonDefaultSetConfig {
notifications_protocol: p,
max_notification_size: 1024 * 1024,
set_config: Default::default()
}
}).collect();