From f399abd7ac1a2d3a32f030a1a801f7781618690d Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 21 Apr 2020 19:15:26 +0400 Subject: [PATCH] abci: update MaxAgeNumBlocks & MaxAgeDuration docs (#88) --- spec/abci/abci.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/spec/abci/abci.md b/spec/abci/abci.md index 3c6526a91..8137138e0 100644 --- a/spec/abci/abci.md +++ b/spec/abci/abci.md @@ -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