mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
20 lines
815 B
Go
20 lines
815 B
Go
|
package config
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// P2P holds P2P node settings.
|
||
|
type P2P struct {
|
||
|
// Addresses stores the node address list in the form of "[host]:[port][:announcedPort]".
|
||
|
Addresses []string `yaml:"Addresses"`
|
||
|
AttemptConnPeers int `yaml:"AttemptConnPeers"`
|
||
|
// BroadcastFactor is the factor (0-100) controlling gossip fan-out number optimization.
|
||
|
BroadcastFactor int `yaml:"BroadcastFactor"`
|
||
|
DialTimeout time.Duration `yaml:"DialTimeout"`
|
||
|
ExtensiblePoolSize int `yaml:"ExtensiblePoolSize"`
|
||
|
MaxPeers int `yaml:"MaxPeers"`
|
||
|
MinPeers int `yaml:"MinPeers"`
|
||
|
PingInterval time.Duration `yaml:"PingInterval"`
|
||
|
PingTimeout time.Duration `yaml:"PingTimeout"`
|
||
|
ProtoTickInterval time.Duration `yaml:"ProtoTickInterval"`
|
||
|
}
|