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:
parent
eff82d0839
commit
a87d6ea3ab
|
@ -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
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue