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

Discard notifications if we have failed to parse handshake (#8806)

parent 2ab5f9ae
No related merge requests found
......@@ -1517,6 +1517,9 @@ impl<B: BlockT> NetworkBehaviour for Protocol<B> {
);
CustomMessageOutcome::None
}
_ if self.bad_handshake_substreams.contains(&(peer_id.clone(), set_id)) => {
CustomMessageOutcome::None
}
_ => {
let protocol_name = self.notification_protocols[usize::from(set_id) - NUM_HARDCODED_PEERSETS].clone();
CustomMessageOutcome::NotificationsReceived {
......
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