Fix incorrect value stated in error message and use inputToBeAtLeast

This commit is contained in:
Devin Bileck 2019-03-24 23:02:56 -07:00
parent a902a7b627
commit 85fc633430
No known key found for this signature in database
GPG key ID: C86D829C2399D073

View file

@ -220,11 +220,11 @@ public class ChangeParamValidator extends ProposalValidator implements Consensus
case PHASE_VOTE_REVEAL:
case PHASE_BREAK3:
if (isMainnet)
checkArgument(inputValueAsBlock >= 6, Res.get("validation.inputTooSmall", "5 blocks"));
checkArgument(inputValueAsBlock >= 6, Res.get("validation.inputToBeAtLeast", "6 blocks"));
break;
case PHASE_RESULT:
if (isMainnet)
checkArgument(inputValueAsBlock >= 1, Res.get("validation.inputTooSmall", "1 block"));
checkArgument(inputValueAsBlock >= 1, Res.get("validation.inputToBeAtLeast", "1 block"));
break;
}