mirror of https://github.com/status-im/go-waku.git
fix: adding relay protocol to feature check function of gossipsub
This commit is contained in:
parent
b8ab99ba08
commit
fb3447f3d8
|
@ -144,9 +144,9 @@ func NewWakuRelay(bcaster Broadcaster, minPeersToPublish int, timesource timesou
|
||||||
func(feat pubsub.GossipSubFeature, proto protocol.ID) bool {
|
func(feat pubsub.GossipSubFeature, proto protocol.ID) bool {
|
||||||
switch feat {
|
switch feat {
|
||||||
case pubsub.GossipSubFeatureMesh:
|
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:
|
case pubsub.GossipSubFeaturePX:
|
||||||
return proto == pubsub.GossipSubID_v11
|
return proto == pubsub.GossipSubID_v11 || proto == WakuRelayID_v200
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue