docs: add flag documentation (#4219)

This commit is contained in:
Jonathan Gimeno
2019-12-04 18:48:26 +01:00
committed by Tess Rinearson
parent 92d18d7fcd
commit 06b8752a46
2 changed files with 10 additions and 3 deletions

View File

@@ -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