From b76ea87b4f6bfbcbf3ec164ac25593a14bc7488d Mon Sep 17 00:00:00 2001 From: philipsu522 Date: Mon, 6 Jun 2022 14:05:50 -0700 Subject: [PATCH] Set commit timeout to 1 second --- app/upgrades.go | 4 +++- cmd/seid/cmd/init.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index a6d5f9da90..0dd955e639 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -6,6 +6,9 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) +// NOTE: When performing upgrades, make sure to keep / register the handlers +// for both the current (n) and the previous (n-1) upgrade name. There is a bug +// in a missing value in a log statement for which the fix is not released const UpgradeNameOracleModule = "create-oracle-mod" const UpgradeOracleStaleIndicator = "upgrade-oracle-stale-indicator" const IgniteCLIRemovalUpgradeHandler = "ignite-cli-removal-upgrade" @@ -18,7 +21,6 @@ func (app App) RegisterUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler(UpgradeOracleStaleIndicator, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { return app.mm.RunMigrations(ctx, app.configurator, fromVM) }) - app.UpgradeKeeper.SetUpgradeHandler(IgniteCLIRemovalUpgradeHandler, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { return app.mm.RunMigrations(ctx, app.configurator, fromVM) }) diff --git a/cmd/seid/cmd/init.go b/cmd/seid/cmd/init.go index d966d46089..d7feee0148 100644 --- a/cmd/seid/cmd/init.go +++ b/cmd/seid/cmd/init.go @@ -88,6 +88,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.Mempool.Size = 500 config.StateSync.TrustPeriod = 168 * time.Hour config.FastSync.Version = "v0" + config.Consensus.TimeoutCommit = 1 * time.Second config.SetRoot(clientCtx.HomeDir)