mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 03:35:19 +00:00
abci: update MaxAgeNumBlocks & MaxAgeDuration docs (#88)
This commit is contained in:
@@ -510,10 +510,15 @@ Commit are included in the header of the next block.
|
|||||||
- **Fields**:
|
- **Fields**:
|
||||||
- `MaxAgeNumBlocks (int64)`: Max age of evidence, in blocks.
|
- `MaxAgeNumBlocks (int64)`: Max age of evidence, in blocks.
|
||||||
- `MaxAgeDuration (time.Duration)`: Max age of evidence, in time.
|
- `MaxAgeDuration (time.Duration)`: Max age of evidence, in time.
|
||||||
Evidence older than this is considered stale and ignored.
|
It should correspond with an app's "unbonding period" or other similar
|
||||||
|
mechanism for handling [Nothing-At-Stake
|
||||||
- This should correspond with an app's "unbonding period" or other
|
attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
|
||||||
similar mechanism for handling Nothing-At-Stake attacks.
|
|
||||||
|
- Evidence older than `MaxAgeNumBlocks` && `MaxAgeDuration` is considered
|
||||||
|
stale and ignored.
|
||||||
|
- In Cosmos-SDK based blockchains, `MaxAgeDuration` is usually equal to the
|
||||||
|
unbonding period. `MaxAgeNumBlocks` is calculated by dividing the unboding
|
||||||
|
period by the average block time (e.g. 2 weeks / 6s per block = 2d8h).
|
||||||
|
|
||||||
### ValidatorParams
|
### ValidatorParams
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user