nBlockEnd/nAmount budget item check
- Make sure nBlockEnd > nBlockStart+Cycle - Make sure nAmount is more than 1DASH
This commit is contained in:
parent
c936bfe7f3
commit
54ee699112
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user