consensus: deprecate time iota ms (#5792)

time_iota_ms is intended to ensure that an honest validator always generates timestamps 
with time increasing monotonically. For this purpose, it always suffices to have this parameter
set to `1ms`. Allowing users to choose different numbers increases bug surface area.
Thus the code now ignores the user provided time_iota_ms parameter (marking it as unused), 
and uses 1ms internally.
This commit is contained in:
Dev Ojha
2020-12-17 10:32:42 -06:00
committed by GitHub
parent ced66e4eb5
commit 8c0af72987
6 changed files with 10 additions and 11 deletions

View File

@@ -53,9 +53,7 @@ definition](https://github.com/tendermint/tendermint/blob/master/types/genesis.g
- `block`
- `max_bytes`: Max block size, in bytes.
- `max_gas`: Max gas per block.
- `time_iota_ms`: Minimum time increment between consecutive blocks (in
milliseconds). If the block header timestamp is ahead of the system clock,
decrease this value.
- `time_iota_ms`: Unused. This has been deprecated and will be removed in a future version.
- `evidence`
- `max_age_num_blocks`: Max age of evidence, in blocks. The basic formula
for calculating this is: MaxAgeDuration / {average block time}.