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:
parent
2f6e678a19
commit
b12a68994d
11 changed files with 17 additions and 3 deletions
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue