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
2022-10-11 18:25:12 +03:00
committed by GitHub
parent d61b0866ed
commit e1e5b7037a
2 changed files with 18 additions and 12 deletions
@@ -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,