diff --git a/cli/operator/node.go b/cli/operator/node.go index 759fca2239..ba8e682aed 100644 --- a/cli/operator/node.go +++ b/cli/operator/node.go @@ -357,6 +357,12 @@ var StartNodeCmd = &cobra.Command{ } } idealMaxPeers := min(baseMaxPeers+peersPerSubnet*myActiveSubnets, maxPeersLimit) + + logger.Info("debugging MaxPeers", + zap.Int("cfg.P2pNetworkConfig.MaxPeers", cfg.P2pNetworkConfig.MaxPeers), + zap.Int("idealMaxPeers", idealMaxPeers), + ) + if cfg.P2pNetworkConfig.MaxPeers < idealMaxPeers { logger.Warn("increasing MaxPeers to match the operator's subscribed subnets", zap.Int("old_max_peers", cfg.P2pNetworkConfig.MaxPeers),