Skip to content

Bump c-lean-libp2p for gossipsub v1.2 IDONTWANT compatibility#99

Merged
uink45 merged 1 commit into
devnet-4from
bump/c-lean-libp2p-gossipsub-v12
May 24, 2026
Merged

Bump c-lean-libp2p for gossipsub v1.2 IDONTWANT compatibility#99
uink45 merged 1 commit into
devnet-4from
bump/c-lean-libp2p-gossipsub-v12

Conversation

@uink45
Copy link
Copy Markdown
Collaborator

@uink45 uink45 commented May 24, 2026

Picks up Pier-Two/c-lean-libp2p#18, which lets lantern interop with peers running gossipsub v1.2 (qlean, ream, others). Two changes upstream:

  • Decode incoming IDONTWANT control frames on any negotiated version rather than aborting RPC body decode with UNSUPPORTED_VERSION. The encoder remains strict: lantern only emits IDONTWANT on v1.2 streams.
  • Drive gossipsub stream_read on any readable event regardless of stream direction, since peers may deliver readable traffic on the outbound stream too.

Resolves the lantern+qlean (and likely other lantern+vN clients) finality stall reproduced in hive client-interop and locally with 1 lantern + 2 qlean.

Picks up Pier-Two/c-lean-libp2p#18, which lets lantern interop with
peers running gossipsub v1.2 (qlean, ream, others). Two changes
upstream:

- Decode incoming IDONTWANT control frames on any negotiated version
  rather than aborting RPC body decode with UNSUPPORTED_VERSION. The
  encoder remains strict: lantern only emits IDONTWANT on v1.2
  streams.
- Drive gossipsub stream_read on any readable event regardless of
  stream direction, since peers may deliver readable traffic on the
  outbound stream too.

Resolves the lantern+qlean (and likely other lantern+vN clients)
finality stall reproduced in hive client-interop and locally with
1 lantern + 2 qlean.
@uink45 uink45 merged commit 318de0e into devnet-4 May 24, 2026
4 checks passed
@uink45 uink45 deleted the bump/c-lean-libp2p-gossipsub-v12 branch May 24, 2026 11:44
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.

1 participant