Fix TimeoutCommit (#2743)

* Fix TimeoutCommit to 5 seconds instead of whatever it was before which was too short.
This commit is contained in:
Hendrik Hofstadt 2018-11-10 01:08:35 +01:00 committed by Jae Kwon
parent 056e75c30b
commit 61fd142b9e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -7,6 +7,7 @@ import (
"os/signal"
"path/filepath"
"syscall"
"time"
"github.com/pkg/errors"
"github.com/spf13/cobra"
@ -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.
}