baseapp: fix err message and use valid default consensus params values (#7471)

* update err msg and add passing default in simapp

* fix default

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
colin axnér 2020-10-07 14:56:11 +02:00 committed by GitHub
parent eff82d0839
commit a87d6ea3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func ValidateEvidenceParams(i interface{}) error {
}
if v.MaxNum <= 0 {
return fmt.Errorf("evidence maximum number of evidence must be positive: %v", v.MaxAgeDuration)
return fmt.Errorf("evidence maximum number of evidence must be positive: %v", v.MaxNum)
}
return nil

View File

@ -38,6 +38,7 @@ var DefaultConsensusParams = &abci.ConsensusParams{
Evidence: &tmproto.EvidenceParams{
MaxAgeNumBlocks: 302400,
MaxAgeDuration: 504 * time.Hour, // 3 weeks is the max duration
MaxNum: 50,
},
Validator: &tmproto.ValidatorParams{
PubKeyTypes: []string{