Skip to content

Commit

Permalink
baseapp: fix err message and use valid default consensus params values (
Browse files Browse the repository at this point in the history
#7471)

* update err msg and add passing default in simapp

* fix default

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
colin-axner and mergify[bot] authored Oct 7, 2020
1 parent eff82d0 commit a87d6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion baseapp/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit a87d6ea

Please sign in to comment.