diff --git a/baseapp/params.go b/baseapp/params.go index f7d8d1c0a1c..7b3ec6ff7d2 100644 --- a/baseapp/params.go +++ b/baseapp/params.go @@ -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 diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 31fed4c9964..136fde760e4 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -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{