This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
NotificationReceived received before NotificationsStreamOpen #5516
Labels
I3-bug
The node fails to follow expected behavior.
It is possible at the moment from the network events stream to receive a notification for a protocol with a peer that hasn't been reported as open.
For backwards-compatibility reasons, we report on the API level as open only nodes for which we have a fully-handshaked legacy substream open. We also discard notifications received from nodes for which we don't have a fully-handshaked legacy substream open.
There exists a bug right now where we are only discarding messages from nodes for which we don't have a substream with, but not from nodes for which we do have a substream but it hasn't finished its handshake.
Before fixing this bug, however, we have to figure out why notifications get sent at all in this condition. Remember that the remote also only sees the notifications substream as open once the legacy substream has been handshaked, and thus it is not supposed to send any message that we would then discard.
The text was updated successfully, but these errors were encountered: