Skip to content

Commit

Permalink
allow up to 40 chars in proposal name (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored Oct 25, 2017
1 parent 4ecbedb commit 6f57519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/governance-validators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ bool CProposalValidator::ValidateName()
return false;
}

if(strName.size() > 40) {
strErrorMessages += "name exceeds 40 characters;";
return false;
}

std::string strNameStripped = StripWhitespace(strName);

if(strNameStripped.empty()) {
Expand Down

0 comments on commit 6f57519

Please sign in to comment.