network: make minpeers configurable

Without it node in privnet tries to reconnect to four existing nodes
indefinitely for no good reason.
This commit is contained in:
Roman Khimov 2019-10-31 15:04:28 +03:00
parent 2f6e678a19
commit b12a68994d
11 changed files with 17 additions and 3 deletions

View file

@ -73,6 +73,7 @@ type (
DialTimeout time.Duration `yaml:"DialTimeout"`
ProtoTickInterval time.Duration `yaml:"ProtoTickInterval"`
MaxPeers int `yaml:"MaxPeers"`
MinPeers int `yaml:"MinPeers"`
Monitoring metrics.PrometheusConfig `yaml:"Monitoring"`
}