mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user