nBlockEnd/nAmount budget item check

- Make sure nBlockEnd > nBlockStart+Cycle
- Make sure nAmount is more than 1DASH
This commit is contained in:
Evan Duffield 2015-08-14 06:32:11 -07:00
parent c936bfe7f3
commit 54ee699112

View File

@ -1305,6 +1305,16 @@ bool CBudgetProposal::IsValid(std::string& strError, bool fCheckCollateral)
return false;
}
if(nBlockEnd < nBlockStart) {
strError = "Invalid nBlockEnd";
return false;
}
if(nAmount < 1*COIN) {
strError = "Invalid nAmount";
return false;
}
if(address == CScript()) {
strError = "Invalid Payment Address";
return false;