diff --git a/beacon-chain/p2p/service.go b/beacon-chain/p2p/service.go index 103bdcd617ba..8bc5b45fad2c 100644 --- a/beacon-chain/p2p/service.go +++ b/beacon-chain/p2p/service.go @@ -235,11 +235,19 @@ func (s *Service) Start() { async.RunEvery(s.ctx, time.Duration(params.BeaconConfig().RespTimeout)*time.Second, s.updateMetrics) async.RunEvery(s.ctx, refreshRate, s.RefreshENR) async.RunEvery(s.ctx, 1*time.Minute, func() { + inboundQUICCount := len(s.peers.InboundConnectedQUIC()) + inboundTCPCount := len(s.peers.InboundConnectedTCP()) + outboundQUICCount := len(s.peers.OutboundConnectedQUIC()) + outboundTCPCount := len(s.peers.OutboundConnectedTCP()) + total := inboundQUICCount + inboundTCPCount + outboundQUICCount + outboundTCPCount + log.WithFields(logrus.Fields{ - "inbound": len(s.peers.InboundConnected()), - "outbound": len(s.peers.OutboundConnected()), - "activePeers": len(s.peers.Active()), - }).Info("Peer summary") + "inboundQUIC": inboundQUICCount, + "inboundTCP": inboundTCPCount, + "outboundQUIC": outboundQUICCount, + "outboundTCP": outboundTCPCount, + "total": total, + }).Info("Connected peers") }) multiAddrs := s.host.Network().ListenAddresses()