From 2ee3a5ee36adcd22a14efb11122ca47c36530254 Mon Sep 17 00:00:00 2001 From: evan-forbes Date: Fri, 27 May 2022 14:24:17 -0500 Subject: [PATCH 1/3] update default configs --- x/genutil/client/cli/init.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 9e8674a84b5..134debd7e8f 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -88,6 +88,12 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.Mempool.KeepInvalidTxsInCache = true config.Mempool.TTLNumBlocks = 15 + config.P2P.UseLegacy = true + config.P2P.MaxNumInboundPeers = 250 + config.P2P.MaxNumOutboundPeers = 70 + config.P2P.MaxConnections = 320 + config.P2P.BootstrapPeers = "a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656,f0c58d904dec824605ac36114db28f1bf84f6ea3@144.76.112.238:26656" // nolint:lll + config.SetRoot(clientCtx.HomeDir) chainID, _ := cmd.Flags().GetString(flags.FlagChainID) From 5447df7c447db911900d6f94d87350bf17aea360 Mon Sep 17 00:00:00 2001 From: evan-forbes Date: Fri, 27 May 2022 14:42:07 -0500 Subject: [PATCH 2/3] switch bootstrap to seed nodes --- x/genutil/client/cli/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 134debd7e8f..75dd364fe70 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -92,7 +92,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.P2P.MaxNumInboundPeers = 250 config.P2P.MaxNumOutboundPeers = 70 config.P2P.MaxConnections = 320 - config.P2P.BootstrapPeers = "a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656,f0c58d904dec824605ac36114db28f1bf84f6ea3@144.76.112.238:26656" // nolint:lll + config.P2P.Seeds = "a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656,f0c58d904dec824605ac36114db28f1bf84f6ea3@144.76.112.238:26656" // nolint:lll config.SetRoot(clientCtx.HomeDir) From a63c02425a26acd9de867cd34e66e3d078712559 Mon Sep 17 00:00:00 2001 From: evan-forbes Date: Fri, 27 May 2022 15:54:44 -0500 Subject: [PATCH 3/3] use a broadcast commit time that should ideally work --- x/genutil/client/cli/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 75dd364fe70..fac1bedd822 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -93,6 +93,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.P2P.MaxNumOutboundPeers = 70 config.P2P.MaxConnections = 320 config.P2P.Seeds = "a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656,f0c58d904dec824605ac36114db28f1bf84f6ea3@144.76.112.238:26656" // nolint:lll + config.RPC.TimeoutBroadcastTxCommit = time.Second * 40 config.SetRoot(clientCtx.HomeDir)