From fd8d1d6b69a84f7c817056fbc3d490d13570b1f8 Mon Sep 17 00:00:00 2001 From: cong Date: Tue, 20 Nov 2018 00:15:23 +0800 Subject: [PATCH] add BlockTimeIota to the config.toml (#2878) Refs #2877 --- CHANGELOG_PENDING.md | 2 ++ config/toml.go | 3 +++ docs/tendermint-core/configuration.md | 3 +++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index fd340d4da..b499ab40c 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -25,4 +25,6 @@ program](https://hackerone.com/tendermint). ### IMPROVEMENTS: +- [config] \#2877 add blocktime_iota to the config.toml (@ackratos) + ### BUG FIXES: diff --git a/config/toml.go b/config/toml.go index 6f0578e44..21e017b45 100644 --- a/config/toml.go +++ b/config/toml.go @@ -260,6 +260,9 @@ create_empty_blocks_interval = "{{ .Consensus.CreateEmptyBlocksInterval }}" peer_gossip_sleep_duration = "{{ .Consensus.PeerGossipSleepDuration }}" peer_query_maj23_sleep_duration = "{{ .Consensus.PeerQueryMaj23SleepDuration }}" +# Block time parameters. Corresponds to the minimum time increment between consecutive blocks. +blocktime_iota = "{{ .Consensus.BlockTimeIota }}" + ##### transactions indexer configuration options ##### [tx_index] diff --git a/docs/tendermint-core/configuration.md b/docs/tendermint-core/configuration.md index 13894a308..7d1a562ec 100644 --- a/docs/tendermint-core/configuration.md +++ b/docs/tendermint-core/configuration.md @@ -203,6 +203,9 @@ create_empty_blocks_interval = "0s" peer_gossip_sleep_duration = "100ms" peer_query_maj23_sleep_duration = "2000ms" +# Block time parameters. Corresponds to the minimum time increment between consecutive blocks. +blocktime_iota = "1000ms" + ##### transactions indexer configuration options ##### [tx_index]