fix: adding relay protocol to feature check function of gossipsub

This commit is contained in:
Richard Ramos 2023-06-29 09:29:08 -04:00
parent b8ab99ba08
commit fb3447f3d8
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
1 changed files with 2 additions and 2 deletions

View File

@ -144,9 +144,9 @@ func NewWakuRelay(bcaster Broadcaster, minPeersToPublish int, timesource timesou
func(feat pubsub.GossipSubFeature, proto protocol.ID) bool {
switch feat {
case pubsub.GossipSubFeatureMesh:
return proto == pubsub.GossipSubID_v11 || proto == pubsub.GossipSubID_v10
return proto == pubsub.GossipSubID_v11 || proto == pubsub.GossipSubID_v10 || proto == WakuRelayID_v200
case pubsub.GossipSubFeaturePX:
return proto == pubsub.GossipSubID_v11
return proto == pubsub.GossipSubID_v11 || proto == WakuRelayID_v200
default:
return false
}