mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-12 06:41:31 +00:00
use configuration file params
This commit is contained in:
@@ -715,7 +715,9 @@ func loadStateFromDBOrGenesisDocProvider(stateStore sm.Store, genDoc *types.Gene
|
||||
|
||||
func getRouterConfig(conf *config.Config, appClient abciclient.Client) p2p.RouterOptions {
|
||||
opts := p2p.RouterOptions{
|
||||
QueueType: conf.P2P.QueueType,
|
||||
QueueType: conf.P2P.QueueType,
|
||||
HandshakeTimeout: conf.P2P.HandshakeTimeout,
|
||||
DialTimeout: conf.P2P.DialTimeout,
|
||||
}
|
||||
|
||||
if conf.FilterPeers && appClient != nil {
|
||||
@@ -748,8 +750,6 @@ func getRouterConfig(conf *config.Config, appClient abciclient.Client) p2p.Route
|
||||
}
|
||||
|
||||
}
|
||||
opts.HandshakeTimeout = 15 * time.Second
|
||||
opts.DialTimeout = 5 * time.Second
|
||||
|
||||
return opts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user