Skip to content

Conversation

MarcoPolo
Copy link
Contributor

@MarcoPolo MarcoPolo commented Jul 9, 2025

Before Merge:

  • Gossipsub v1.3 specs#687. Come to rough consensus on having Gossipsub v1.3 only add support for the extensions control message.

An alternative would be to rely on peers ignoring protobuf messages they don't understand. It seems better to explicitly signal support for the Extensions control Message and only send it if you know your peer supports it. I'll create a new specs issue/PR to discuss this.


This implements the Gossipsub Extensions Control Message from libp2p/specs#684. It also implements the Test Extension libp2p/specs#686 as an interop test.

There is a rust-libp2p implementation, and using the gossip-interop tester, I've tested interop between these implementations for the Test Extension.

Don't let the diff stats scare you, they are mostly generated protobuf code.

}

func (e *testExtension) AddPeer(id peer.ID) {
e.sendRPC(id, &RPC{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you send an RPC here, should you read it from your peer as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Might be easier to test as well. thanks!

@MarcoPolo MarcoPolo requested a review from ppopth August 29, 2025 19:59
@MarcoPolo
Copy link
Contributor Author

Just a friendly reminder that you can view the diffs between versions of these commits at:
https://github.com/libp2p/go-libp2p-pubsub/compare/222428a77e4557f1097e6f0879539ac956760c8f..5299023741423ee771b0db79e902cdf991cd769f#diff-c5386f794d081a791f3a2cbe234dcb5c6452209e916a5869117073c4f8fa8d6c

or (preferred) by locally running:

git range-diff origin/master 222428a 5299023

The latter is preferred as it also tells you which commit introduced the change.

Copy link
Contributor

@ppopth ppopth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me

@MarcoPolo MarcoPolo force-pushed the marco/extensions branch 2 times, most recently from 18833cc to 7402459 Compare September 15, 2025 18:36
@MarcoPolo MarcoPolo force-pushed the marco/extensions branch 2 times, most recently from 939defb to 4e4faae Compare September 15, 2025 19:33
@MarcoPolo MarcoPolo merged commit 4a55800 into master Sep 15, 2025
9 checks passed
@MarcoPolo MarcoPolo deleted the marco/extensions branch September 15, 2025 20:32
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.

2 participants