Skip to content

Commit

Permalink
Merge pull request #238 from binance-chain/checkinfo
Browse files Browse the repository at this point in the history
[R4R]clear the check info
  • Loading branch information
unclezoro authored Aug 14, 2020
2 parents fbbd7e3 + 68e3b8a commit f6c33ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/slashing/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (p *Params) UpdateCheck() error {
return fmt.Errorf("the max_evidence_age should be in range 1 minutes to 100 day")
}
if p.DoubleSignUnbondDuration < 1*time.Hour {
return fmt.Errorf("the double_sign_unbond_duration should be greate than 1 hour")
return fmt.Errorf("the double_sign_unbond_duration should be no less than 1 hour")
}
if p.DowntimeUnbondDuration < 60*time.Second || p.DowntimeUnbondDuration > 100*24*time.Hour {
return fmt.Errorf("the downtime_unbond_duration should be in range 1 minutes to 100 day")
Expand All @@ -69,7 +69,7 @@ func (p *Params) UpdateCheck() error {
return fmt.Errorf("the too_low_del_unbond_duration should be in range 1 minutes to 100 day")
}
if p.DoubleSignSlashAmount < 1e8 {
return fmt.Errorf("the double_sign_slash_amount should be larger than 1e8")
return fmt.Errorf("the double_sign_slash_amount should be no less than 1e8")
}
if p.DowntimeSlashAmount < 1e8 || p.DowntimeSlashAmount > 10000e8 {
return fmt.Errorf("the downtime_slash_amount should be in range 1e8 to 10000e8")
Expand Down

0 comments on commit f6c33ac

Please sign in to comment.