Fix flaky service test (#12472)

Sometimes `NotificationStreamOpenened` would be received for the
other protocol before `SyncConnected` was received so when the
connection was closed, an incorrect event was read from the event
stream.
This commit is contained in:
Aaro Altonen authored and GitHub committed 2022-10-11 15:25:12 +00:00
1 parent d61b0866ed
commit e1e5b7037a
2 files changed
+18 -12

No files matched your search

@@ -244,6 +244,10 @@ pub struct NonDefaultSetConfig {
/// `sc_network::protocol::event::Event::NotificationStreamOpened::negotiated_fallback`
pub fallback_names: Vec<protocol::ProtocolName>,
/// Handshake of the protocol
///
/// NOTE: Currently custom handshakes are not fully supported. See issue #5685 for more
/// details. This field is temporarily used to allow moving the hardcoded block announcement
/// protocol out of `protocol.rs`.
pub handshake: Option<NotificationHandshake>,
/// Maximum allowed size of single notifications.
pub max_notification_size: u64,