mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 06:15:33 +00:00
docs: add flag documentation (#4219)
This commit is contained in:
committed by
Tess Rinearson
parent
92d18d7fcd
commit
06b8752a46
@@ -263,12 +263,18 @@ create_empty_blocks = false
|
||||
Remember: because the default is to _create empty blocks_, avoiding
|
||||
empty blocks requires the config option to be set to `false`.
|
||||
|
||||
The block interval setting allows for a delay (in seconds) between the
|
||||
creation of each new empty block. It is set via the `config.toml`:
|
||||
The block interval setting allows for a delay (in time.Duration format [ParseDuration](https://golang.org/pkg/time/#ParseDuration)) between the
|
||||
creation of each new empty block. It can be set with this additional flag:
|
||||
|
||||
```
|
||||
--consensus.create_empty_blocks_interval="5s"
|
||||
```
|
||||
|
||||
or set the configuration via the `config.toml` file:
|
||||
|
||||
```
|
||||
[consensus]
|
||||
create_empty_blocks_interval = 5
|
||||
create_empty_blocks_interval = "5s"
|
||||
```
|
||||
|
||||
With this setting, empty blocks will be produced every 5s if no block
|
||||
|
||||
Reference in New Issue
Block a user