enh/992-add-gossipsub-1.4-support #1012
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was wrong?
Issue #992
Protocol Version Gap: Only supported up to v1.2, missing v1.3 and v1.4 protocol versions
Missing Core v1.4 Features:
Interoperability Issues: Lack of protocol parity with go-libp2p, js-libp2p, and rust-libp2p implementations
How was it fixed?
Summary of approach:
Phase 1: Protocol Foundation (Completed)
Protocol Version Support:
PROTOCOL_ID_V13 = TProtocol("/meshsub/1.3.0")andPROTOCOL_ID_V14 = TProtocol("/meshsub/1.4.0")add_peer()method to accept new protocol versionslibp2p/tools/constants.pyProtocol Feature Detection:
supports_protocol_feature()method for capability negotiationsupports_scoring()helper methodMessage ID Customization Framework:
MessageIDGeneratorabstract base classPeerAndSeqnoMessageIDGeneratorandContentAddressedMessageIDGeneratorCustomMessageIDGeneratorfor user-defined functionsPubsubconstructor to support both callables and generatorsPhase 2: Core v1.4 Features (In Progress)
Extensions Control Message (v1.3):
rpc_v13.proto)IDONTWANT Message Handling (v1.2):
Phase 3: Advanced Features (Pending)
Extended Peer Scoring System:
IP-based Security:
Adaptive Gossip Dissemination:
Rate-limiting and Score Decay:
Phase 4: Testing and Validation (Pending)
Comprehensive Testing:
Documentation:
Architecture Benefits:
To-Do
Cute Animal Picture