Browse Source

abci: update MaxAgeNumBlocks & MaxAgeDuration docs (#88)

pull/7804/head
Anton Kaliaev 5 years ago
committed by GitHub
parent
commit
f399abd7ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      spec/abci/abci.md

+ 9
- 4
spec/abci/abci.md View File

@ -510,10 +510,15 @@ Commit are included in the header of the next block.
- **Fields**:
- `MaxAgeNumBlocks (int64)`: Max age of evidence, in blocks.
- `MaxAgeDuration (time.Duration)`: Max age of evidence, in time.
Evidence older than this is considered stale and ignored.
- This should correspond with an app's "unbonding period" or other
similar mechanism for handling Nothing-At-Stake attacks.
It should correspond with an app's "unbonding period" or other similar
mechanism for handling [Nothing-At-Stake
attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed).
- 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


Loading…
Cancel
Save