Skip to content

Conversation

@imApoorva36
Copy link
Contributor

GossipSub could drop messages published immediately after connecting to a
peer, before the identify handshake completed. While #893 prevented a
crash, the behavior was still timing-dependent.

This PR makes publishing identify-aware by queueing messages for peers
whose protocol negotiation is still in progress and flushing them once
the peer stream is registered.

Includes regression tests for early publish scenarios.

Closes #887

@imApoorva36 imApoorva36 force-pushed the fix/gossipsub-identify-aware-publish branch from e21772b to 69c5cbf Compare February 10, 2026 15:25
@imApoorva36
Copy link
Contributor Author

imApoorva36 commented Feb 10, 2026

@seetadev @sumanjeet0012 this PR is now ready for review, would love your thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyError in GossipSub when publishing before identify handshake completes

1 participant