From 0912d0cd4c9205487e72f248514510bf30013d4f Mon Sep 17 00:00:00 2001 From: winged-pegasus <55340199+winged-pegasus@users.noreply.github.com> Date: Thu, 19 Feb 2026 18:05:34 -0900 Subject: [PATCH] update base peer count to 1 --- node/p2p/blossomsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/p2p/blossomsub.go b/node/p2p/blossomsub.go index a1fcdfd..c001385 100644 --- a/node/p2p/blossomsub.go +++ b/node/p2p/blossomsub.go @@ -890,7 +890,7 @@ func (b *BlossomSub) background(ctx context.Context) { func (b *BlossomSub) checkAndReconnectPeers(ctx context.Context) { peerCount := len(b.h.Network().Peers()) - if peerCount > 0 { + if peerCount > 1 { return } @@ -904,7 +904,7 @@ func (b *BlossomSub) checkAndReconnectPeers(ctx context.Context) { } newCount := len(b.h.Network().Peers()) - if newCount > 0 { + if newCount > 1 { b.logger.Info("peer reconnect succeeded", zap.Int("peers", newCount)) } else { b.logger.Warn("peer reconnect: still no peers found, will retry at next interval")