enable pubsub RED

This commit is contained in:
vyzo 2020-09-03 15:33:29 +03:00
parent 7fdab46729
commit 453ab95e54

View File

@ -277,6 +277,9 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
options = append(options, pubsub.WithDirectPeers(directPeerInfo))
}
// validation queue RED
options = append(options, pubsub.WithPeerGater(pubsub.DefaultPeerGaterParams()))
// tracer
if in.Cfg.RemoteTracer != "" {
a, err := ma.NewMultiaddr(in.Cfg.RemoteTracer)