Skip to content

Commit

Permalink
do not register brs, evs, and bvs
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Apr 10, 2024
1 parent 948e6ed commit 68dd2fe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions gossip/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68dd2fe

Please sign in to comment.