mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
limit direct peering to master only
This commit is contained in:
parent
4629c50a75
commit
d29d4d0e6f
@ -457,7 +457,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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user