implement uacomment config parameter

which can add comments to user agent as per BIP-0014
This commit is contained in:
Pavol Rusnak
2015-07-28 01:58:25 +02:00
committed by Jack Grigg
parent 65a8f9f201
commit 8c5e229ac9
2 changed files with 2 additions and 2 deletions

View File

@@ -435,7 +435,7 @@ void CNode::PushVersion()
else
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
PushMessage("version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<string>()), nBestHeight, true);
nLocalHostNonce, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector<string>()), nBestHeight, true);
}