Skip to content

Conversation

@MarcoPolo
Copy link
Contributor

When we support partial extensions.

@MarcoPolo MarcoPolo requested a review from sukunrt December 5, 2025 22:44
Copy link
Member

@sukunrt sukunrt left a comment

Choose a reason for hiding this comment

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

I think the approach suggested in the comment would make this cleaner. But this looks correct :)

gossipsub.go Outdated
Comment on lines 1401 to 1402
func (gs *GossipSubRouter) sendPeerPartialMessage(p peer.ID, topic string) bool {
myTopicState := gs.p.myTopics[topic]
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest structuring this as 4 methods.

  1. PeerSupportsReceivingPartial(p, topic)
  2. PeerSupportsSendingPartial(p, topic)
  3. ICanReceivePartial(topic)
  4. ICanSendPartial(topic)

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.

3 participants