Browse Source

spec: add ProofTrialPeriod to EvidenceParam (#99)

pull/7804/head
Callum Waters 5 years ago
committed by GitHub
parent
commit
9c0754e617
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 6 deletions
  1. +2
    -0
      spec/abci/abci.md
  2. +11
    -3
      spec/abci/apps.md
  3. +4
    -3
      spec/blockchain/state.md

+ 2
- 0
spec/abci/abci.md View File

@ -618,6 +618,8 @@ via light client.
unbonding period. `MaxAgeNumBlocks` is calculated by dividing the unboding
period by the average block time (e.g. 2 weeks / 6s per block = 2d8h).
- `MaxNum (uint32)`: The maximum number of evidence that can be committed to a single block
- `ProofTrialPeriod (int64)`: The duration in terms of blocks that an indicted node has to
provide proof of correctly executing a lock change in the event of amnesia evidence.
### ValidatorParams


+ 11
- 3
spec/abci/apps.md View File

@ -291,12 +291,20 @@ Must have `MaxAgeNumBlocks > 0`.
### EvidenceParams.MaxNum
This is the maximum number of evidence that can be committed to a single block
This is the maximum number of evidence that can be committed to a single block.
The product of this and the `MaxEvidenceBytes` must not exceed the size of
a block minus it's overhead ( ~ `MaxBytes`)
a block minus it's overhead ( ~ `MaxBytes`).
The amount must be a positive number
The amount must be a positive number.
### EvidenceParams.ProofTrialPeriod
This is the duration in terms of blocks that an indicted validator has to prove a
correct lock change in the event of amnesia evidence when a validator voted more
than once across different rounds.
This must be positive and less then `EvidenceParams.MaxAgeNumBlocks`.
### Updates


+ 4
- 3
spec/blockchain/state.md View File

@ -111,9 +111,10 @@ type BlockParams struct {
}
type EvidenceParams struct {
MaxAgeNumBlocks int64
MaxAgeDuration time.Duration
MaxNum uint32
MaxAgeNumBlocks int64
MaxAgeDuration time.Duration
MaxNum uint32
ProofTrialPeriod int64
}
type ValidatorParams struct {


Loading…
Cancel
Save