Skip to content

Commit

Permalink
Fix TimeoutCommit (#2743)
Browse files Browse the repository at this point in the history
* Fix TimeoutCommit to 5 seconds instead of whatever it was before which was too short.
  • Loading branch information
hendrikhofstadt authored and jaekwon committed Nov 10, 2018
1 parent 056e75c commit 61fd142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ BUG FIXES
* Gaia CLI (`gaiacli`)

* Gaia

* [\#2742](https://github.com/cosmos/cosmos-sdk/issues/2742) Fix time format of TimeoutCommit override

* SDK

* Tendermint
3 changes: 2 additions & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os/signal"
"path/filepath"
"syscall"
"time"

"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -92,7 +93,7 @@ func interceptLoadConfig() (conf *cfg.Config, err error) {
conf.P2P.RecvRate = 5120000
conf.P2P.SendRate = 5120000
conf.TxIndex.IndexAllTags = true
conf.Consensus.TimeoutCommit = 5000
conf.Consensus.TimeoutCommit = 5 * time.Second
cfg.WriteConfigFile(configFilePath, conf)
// Fall through, just so that its parsed into memory.
}
Expand Down

0 comments on commit 61fd142

Please sign in to comment.