Skip to content

Commit

Permalink
Commit timeout (#2057)
Browse files Browse the repository at this point in the history
* precommit timeout

* this ought to do it

* Update CHANGELOG.md
  • Loading branch information
faddat authored Aug 4, 2022
1 parent 25db335 commit 701b391
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

* [#2057](https://github.com/osmosis-labs/osmosis/pull/2057) Reduce block times to about three seconds
* [#1312] Stableswap: Createpool logic
* [#1230] Stableswap CFMM equations
* [#1429] solver for multi-asset CFMM
Expand Down
1 change: 1 addition & 0 deletions cmd/osmosisd/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command {
config.P2P.Seeds = strings.Join(seeds, ",")
config.P2P.MaxNumInboundPeers = 320
config.P2P.MaxNumOutboundPeers = 40
config.Consensus.TimeoutCommit = 2 * time.Second
config.Mempool.Size = 10000
config.StateSync.TrustPeriod = 112 * time.Hour
config.FastSync.Version = "v0"
Expand Down
5 changes: 5 additions & 0 deletions cmd/osmosisd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"os"
"path/filepath"
"time"

"github.com/prometheus/client_golang/prometheus"

Expand Down Expand Up @@ -74,7 +75,11 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
if err := client.SetCmdClientContextHandler(initClientCtx, cmd); err != nil {
return err
}

customAppTemplate, customAppConfig := initAppConfig()
serverCtx := server.GetServerContextFromCmd(cmd)
serverCtx.Config.Consensus.TimeoutCommit = 2 * time.Second

return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig)
},
SilenceUsage: true,
Expand Down

0 comments on commit 701b391

Please sign in to comment.