p2p: add libp2p feature flag (#8410)

This commit is contained in:
Sam Kleinman
2022-04-25 11:47:31 -04:00
committed by GitHub
parent a4190208a3
commit 19ba3c6375
4 changed files with 42 additions and 0 deletions

View File

@@ -716,6 +716,7 @@ 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,
UseLibP2P: conf.P2P.UseLibP2P,
}
if conf.FilterPeers && appClient != nil {