From 68dd2fe0bf616221953ce764280066b0f886789d Mon Sep 17 00:00:00 2001 From: Nicholas Pettas Date: Wed, 10 Apr 2024 14:50:03 -0700 Subject: [PATCH] do not register brs, evs, and bvs --- gossip/handler.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gossip/handler.go b/gossip/handler.go index b80b0f12e..b01e3621f 100644 --- a/gossip/handler.go +++ b/gossip/handler.go @@ -834,20 +834,20 @@ func (h *handler) handle(p *peer) error { p.Log().Warn("Leecher peer registration failed", "err", err) return err } - if p.RunningCap(ProtocolName, []uint{FTM65}) { - if err := h.epLeecher.RegisterPeer(p.id); err != nil { - p.Log().Warn("Leecher peer registration failed", "err", err) - return err - } - if err := h.bvLeecher.RegisterPeer(p.id); err != nil { - p.Log().Warn("Leecher peer registration failed", "err", err) - return err - } - if err := h.brLeecher.RegisterPeer(p.id); err != nil { - p.Log().Warn("Leecher peer registration failed", "err", err) - return err - } - } + //if p.RunningCap(ProtocolName, []uint{FTM65}) { + // if err := h.epLeecher.RegisterPeer(p.id); err != nil { + // p.Log().Warn("Leecher peer registration failed", "err", err) + // return err + // } + // if err := h.bvLeecher.RegisterPeer(p.id); err != nil { + // p.Log().Warn("Leecher peer registration failed", "err", err) + // return err + // } + // if err := h.brLeecher.RegisterPeer(p.id); err != nil { + // p.Log().Warn("Leecher peer registration failed", "err", err) + // return err + // } + //} if snap != nil { if err := h.snapLeecher.SnapSyncer.Register(snap); err != nil { p.Log().Error("Failed to register peer in snap syncer", "err", err)