Browse Source

Update evidence params with MaxNum (#95)

evidence params now includes maxNum which is the maximum number of evidence that can be committed on a single block
pull/7804/head
Callum Waters 5 years ago
committed by GitHub
parent
commit
5acd1540c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions
  1. +1
    -0
      spec/abci/abci.md
  2. +9
    -0
      spec/abci/apps.md
  3. +0
    -1
      spec/abci/client-server.md
  4. +2
    -1
      spec/blockchain/state.md

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

@ -617,6 +617,7 @@ via light client.
- In Cosmos-SDK based blockchains, `MaxAgeDuration` is usually equal to the - In Cosmos-SDK based blockchains, `MaxAgeDuration` is usually equal to the
unbonding period. `MaxAgeNumBlocks` is calculated by dividing the unboding unbonding period. `MaxAgeNumBlocks` is calculated by dividing the unboding
period by the average block time (e.g. 2 weeks / 6s per block = 2d8h). 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
### ValidatorParams ### ValidatorParams


+ 9
- 0
spec/abci/apps.md View File

@ -289,6 +289,15 @@ for it).
Must have `MaxAgeNumBlocks > 0`. Must have `MaxAgeNumBlocks > 0`.
### EvidenceParams.MaxNum
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`)
The amount must be a positive number
### Updates ### Updates
The application may set the ConsensusParams during InitChain, and update them during The application may set the ConsensusParams during InitChain, and update them during


+ 0
- 1
spec/abci/client-server.md View File

@ -35,7 +35,6 @@ appropriately (ie. to `socket` or `grpc`).
See examples, in various stages of maintenance, in See examples, in various stages of maintenance, in
[Go](https://github.com/tendermint/tendermint/tree/master/abci/server), [Go](https://github.com/tendermint/tendermint/tree/master/abci/server),
[JavaScript](https://github.com/tendermint/js-abci), [JavaScript](https://github.com/tendermint/js-abci),
[Python](https://github.com/tendermint/tendermint/tree/master/abci/example/python3/abci),
[C++](https://github.com/mdyring/cpp-tmsp), and [C++](https://github.com/mdyring/cpp-tmsp), and
[Java](https://github.com/jTendermint/jabci). [Java](https://github.com/jTendermint/jabci).


+ 2
- 1
spec/blockchain/state.md View File

@ -107,12 +107,13 @@ func (params ConsensusParams) Hash() []byte {
type BlockParams struct { type BlockParams struct {
MaxBytes int64 MaxBytes int64
MaxGas int64 MaxGas int64
TimeIotaMs int64
TimeIotaMs int64
} }
type EvidenceParams struct { type EvidenceParams struct {
MaxAgeNumBlocks int64 MaxAgeNumBlocks int64
MaxAgeDuration time.Duration MaxAgeDuration time.Duration
MaxNum uint32
} }
type ValidatorParams struct { type ValidatorParams struct {


Loading…
Cancel
Save