Skip to content

Commit

Permalink
fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXJC committed Jan 17, 2019
1 parent 11c5756 commit c498507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/slashing/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func validateJailDuration(p time.Duration) sdk.Error {

func validateCensorshipJailDuration(p time.Duration) sdk.Error {
if p <= 0 || p >= 4*sdk.Week {
return sdk.NewError(params.DefaultCodespace, params.CodeInvalidSlashParams, fmt.Sprintf("Slash CensorshipJailDuration should be between (0, 4week) ", p.String()))
return sdk.NewError(params.DefaultCodespace, params.CodeInvalidSlashParams, fmt.Sprintf("Slash CensorshipJailDuration [%s] should be between (0, 4week) ", p.String()))
}
return nil
}
Expand Down

0 comments on commit c498507

Please sign in to comment.