This commit is contained in:
Black Swan 2026-02-04 01:43:42 +08:00 committed by GitHub
commit 4f7ed4ba0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -470,7 +470,7 @@ func NewBlossomSub(
allowedPeers = append(allowedPeers, bootstrappers...)
directPeers := []peer.AddrInfo{}
if len(p2pConfig.DirectPeers) > 0 {
if len(p2pConfig.DirectPeers) > 0 && coreId == 0 {
logger.Info("found direct peers in config")
for _, peerAddr := range p2pConfig.DirectPeers {
peerinfo, err := peer.AddrInfoFromString(peerAddr)