From 5260143df063434dfb87b2375112734da3236495 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Mon, 1 Apr 2024 22:11:04 -0600 Subject: [PATCH 1/2] timeout commit to 2s --- cmd/osmosisd/cmd/init.go | 4 ++-- cmd/osmosisd/cmd/root.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/osmosisd/cmd/init.go b/cmd/osmosisd/cmd/init.go index 70cceec8fc1..6d84abfe472 100644 --- a/cmd/osmosisd/cmd/init.go +++ b/cmd/osmosisd/cmd/init.go @@ -112,8 +112,8 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { config.StateSync.TrustPeriod = 112 * time.Hour // The original default is 5s and is set in Cosmos SDK. - // We lower it to 3s for faster block times. - config.Consensus.TimeoutCommit = 3 * time.Second + // We lower it to 2s for faster block times. + config.Consensus.TimeoutCommit = 2 * time.Second config.SetRoot(clientCtx.HomeDir) diff --git a/cmd/osmosisd/cmd/root.go b/cmd/osmosisd/cmd/root.go index d86dfdfe475..da79a30cc2f 100644 --- a/cmd/osmosisd/cmd/root.go +++ b/cmd/osmosisd/cmd/root.go @@ -443,7 +443,7 @@ func overwriteConfigTomlValues(serverCtx *server.Context) error { // It does not exist, so we update the default config.toml to update // We modify the default config.toml to have faster block times // It will be written by server.InterceptConfigsPreRunHandler - tmcConfig.Consensus.TimeoutCommit = 3 * time.Second + tmcConfig.Consensus.TimeoutCommit = 2 * time.Second } else { // config.toml exists @@ -469,8 +469,8 @@ func overwriteConfigTomlValues(serverCtx *server.Context) error { } // The original default is 5s and is set in Cosmos SDK. - // We lower it to 3s for faster block times. - serverCtx.Config.Consensus.TimeoutCommit = 3 * time.Second + // We lower it to 2s for faster block times. + serverCtx.Config.Consensus.TimeoutCommit = 2 * time.Second defer func() { if err := recover(); err != nil { From 7d875660836aa69a0537b404797cc66699d0e357 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Mon, 1 Apr 2024 22:13:25 -0600 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31497ecb01d..ea8740014cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#7527](https://github.com/osmosis-labs/osmosis/pull/7527) Add 30M gas limit to CW pool contract calls * [#7855](https://github.com/osmosis-labs/osmosis/pull/7855) Whitelist address parameter for setting fee tokens * [#7857](https://github.com/osmosis-labs/osmosis/pull/7857) SuperfluidDelegationsByValidatorDenom query now returns equivalent staked amount +* [#7912](https://github.com/osmosis-labs/osmosis/pull/7912) Default timeoutCommit to 2s ### SDK