You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A way to set ProtocolId on GossipSub without prefix logic.
Open questions
What is the feasibility of this feature?
Are there any reasons not to have this feature on GossipSub?
Are you planning to do it yourself in a pull request?
Maybe. I would probably need some guidance.
The text was updated successfully, but these errors were encountered:
bernardoaraujor
changed the title
Override protocol prefix on GossipsubConfigBuilder
Override protocol id prefix on GossipsubConfigBuilder
Jun 15, 2022
Description
I need to be able to set the entire
GossipSub
'sProtocolId
, not only the prefix.Motivation
I'm working on a Rust implementation of Waku, an evolution of Ethereum Whisper: https://github.com/bernardoaraujor/waku-rs
At this point, I have a minimal working implementation of 11/WAKU2-RELAY, 13/WAKU2-STORE and 19/WAKU2-LIGHTPUSH.
When trying to connect it to the Nim reference implementation without success, I noticed the following messages on the Nim logs:
where
protocol=//vac/waku/relay/2.0.0/1.1.0
is clearly not what I intended withRELAY_PROTOCOL_ID
.It turns out that's a result of
GossipsubConfigBuilder::default().protocol_id_prefix(RELAY_PROTOCOL_ID)
, which usesRELAY_PROTOCOL_ID
as a mere prefix forProtocolId
, adding extra/
and/1.1.0
.Requirements
A way to set
ProtocolId
onGossipSub
without prefix logic.Open questions
GossipSub
?Are you planning to do it yourself in a pull request?
Maybe. I would probably need some guidance.
The text was updated successfully, but these errors were encountered: