allow up to 40 chars in proposal name (#1693)

align with 299035e36d
This commit is contained in:
UdjinM6 2017-10-25 17:57:39 +03:00 committed by GitHub
parent 4ecbedbe74
commit 6f57519c60

View File

@ -77,6 +77,11 @@ bool CProposalValidator::ValidateName()
return false; return false;
} }
if(strName.size() > 40) {
strErrorMessages += "name exceeds 40 characters;";
return false;
}
std::string strNameStripped = StripWhitespace(strName); std::string strNameStripped = StripWhitespace(strName);
if(strNameStripped.empty()) { if(strNameStripped.empty()) {