Merge pull request #2813 from str4d/2074-uacomment

Implement uacomment config parameter
This commit is contained in:
Marshall Gaucher
2018-04-30 09:12:38 -06:00
committed by GitHub
8 changed files with 51 additions and 15 deletions

View File

@@ -4820,7 +4820,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (!vRecv.empty())
vRecv >> addrFrom >> nNonce;
if (!vRecv.empty()) {
vRecv >> LIMITED_STRING(pfrom->strSubVer, 256);
vRecv >> LIMITED_STRING(pfrom->strSubVer, MAX_SUBVERSION_LENGTH);
pfrom->cleanSubVer = SanitizeString(pfrom->strSubVer);
}
if (!vRecv.empty())