From 6f57519c60c68b9d1a25f9e8acb70daf585488e4 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 25 Oct 2017 17:57:39 +0300 Subject: [PATCH] allow up to 40 chars in proposal name (#1693) align with https://github.com/dashpay/sentinel/commit/299035e36dbd3166b6b1631b26a9b4e175c78def --- src/governance-validators.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/governance-validators.cpp b/src/governance-validators.cpp index c8c6a3c651..51090f5a27 100644 --- a/src/governance-validators.cpp +++ b/src/governance-validators.cpp @@ -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()) {