config: set time_iota_ms to timeout_commit in test genesis (#5386)

also, document consensus parameters.
https://forum.cosmos.network/t/consensus-timeouts-explained/1421

Closes #4489
This commit is contained in:
Anton Kaliaev
2020-09-23 12:24:45 +04:00
committed by GitHub
parent 58b4deca86
commit 4b99502d5b
5 changed files with 55 additions and 11 deletions
+1 -5
View File
@@ -75,11 +75,7 @@ func ExampleClient_Update() {
time.Sleep(2 * time.Second)
// XXX: 30 * time.Minute clock drift is needed because a) Tendermint strips
// monotonic component (see types/time/time.go) b) single instance is being
// run.
// https://github.com/tendermint/tendermint/issues/4489
h, err := c.Update(context.Background(), time.Now().Add(30*time.Minute))
h, err := c.Update(context.Background(), time.Now())
if err != nil {
stdlog.Fatal(err)
}