From 6b80c4078d46849052f3325065dd12aa22bb1344 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 22 Nov 2019 00:09:37 +0200 Subject: [PATCH] peer exchange on prune --- gossipsub.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/gossipsub.go b/gossipsub.go index d747029..feb5f6c 100644 --- a/gossipsub.go +++ b/gossipsub.go @@ -98,7 +98,6 @@ type connectInfo struct { func (gs *GossipSubRouter) Protocols() []protocol.ID { return []protocol.ID{GossipSubID_v11, GossipSubID_v10, FloodSubID} - return []protocol.ID{GossipSubID_v11, GossipSubID, FloodSubID} } func (gs *GossipSubRouter) Attach(p *PubSub) { @@ -864,7 +863,6 @@ func (gs *GossipSubRouter) getPeers(topic string, count int, filter func(peer.ID peers := make([]peer.ID, 0, len(tmap)) for p := range tmap { if (gs.peers[p] == GossipSubID_v10 || gs.peers[p] == GossipSubID_v11) && filter(p) { - if (gs.peers[p] == GossipSubID || gs.peers[p] == GossipSubID_v11) && filter(p) { peers = append(peers, p) } }