You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gossipsub): race condition for messages already on the network
There is a possible race condition that can happen that results in us inadvertently penalizing a peer.
1. Message A gets published on the network
1. We receive an IHAVE for message A
1. We request an IWANT for message from Peer Z
1. We then publish message A
1. Peer Z responds with our requested message, but we ignore it as its now a duplicate
1. We penalize Peer Z for not responding to our IWANT.
This PR removes the promise for a message when we publish it.
Pull-Request: libp2p#5928.
0 commit comments