mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
Discard notifications if we have failed to parse handshake (#8806)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user