github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/config/p2p.go (about)

     1  package config
     2  
     3  import "time"
     4  
     5  // P2P holds P2P node settings.
     6  type P2P struct {
     7  	// Addresses stores the node address list in the form of "[host]:[port][:announcedPort]".
     8  	Addresses        []string `yaml:"Addresses"`
     9  	AttemptConnPeers int      `yaml:"AttemptConnPeers"`
    10  	// BroadcastFactor is the factor (0-100) controlling gossip fan-out number optimization.
    11  	BroadcastFactor    int           `yaml:"BroadcastFactor"`
    12  	DialTimeout        time.Duration `yaml:"DialTimeout"`
    13  	ExtensiblePoolSize int           `yaml:"ExtensiblePoolSize"`
    14  	MaxPeers           int           `yaml:"MaxPeers"`
    15  	MinPeers           int           `yaml:"MinPeers"`
    16  	PingInterval       time.Duration `yaml:"PingInterval"`
    17  	PingTimeout        time.Duration `yaml:"PingTimeout"`
    18  	ProtoTickInterval  time.Duration `yaml:"ProtoTickInterval"`
    19  }