Skip to content

Commit

Permalink
Merge pull request tendermint#11 from BiJie/BlockTimeIota_config_fix
Browse files Browse the repository at this point in the history
disable BlockTimeIota
  • Loading branch information
ackratos committed Nov 23, 2018
2 parents 6fad36f + 2367603 commit 4f6dfec
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 9 deletions.
173 changes: 165 additions & 8 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ func DefaultConsensusConfig() *ConsensusConfig {
CreateEmptyBlocksInterval: 0,
PeerGossipSleepDuration: 10,
PeerQueryMaj23SleepDuration: 2000,
BlockTimeIota: 1000,
BlockTimeIota: 0,
}
}

Expand Down
3 changes: 3 additions & 0 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,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]
Expand Down
3 changes: 3 additions & 0 deletions docs/tendermint-core/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ create_empty_blocks_interval = 0
peer_gossip_sleep_duration = 100
peer_query_maj23_sleep_duration = 2000
# Block time parameters. Corresponds to the minimum time increment between consecutive blocks.
blocktime_iota = "0ms"
##### transactions indexer configuration options #####
[tx_index]
Expand Down

0 comments on commit 4f6dfec

Please sign in to comment.