aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPavol Rusnak <stick@gk2.sk>2015-07-28 01:58:25 +0200
committerPavol Rusnak <stick@gk2.sk>2015-07-31 16:19:23 +0200
commit557f8eac7aa96059270a36358642fbce93ac0478 (patch)
tree963e6f48d33b75d56f735bff136bc8dc03450192 /src/net.cpp
parent86cfd23f68367af072500b1758a4c446cdd36e74 (diff)
implement uacomment config parameter
which can add comments to user agent as per BIP-0014
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 3cece520de..42ca69e096 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -445,7 +445,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);
}