aboutsummaryrefslogtreecommitdiff
path: root/src/rpcnet.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/rpcnet.cpp
parent86cfd23f68367af072500b1758a4c446cdd36e74 (diff)
implement uacomment config parameter
which can add comments to user agent as per BIP-0014
Diffstat (limited to 'src/rpcnet.cpp')
-rw-r--r--src/rpcnet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp
index ed903f9fd3..f9c7d3ad30 100644
--- a/src/rpcnet.cpp
+++ b/src/rpcnet.cpp
@@ -444,7 +444,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
UniValue obj(UniValue::VOBJ);
obj.push_back(Pair("version", CLIENT_VERSION));
obj.push_back(Pair("subversion",
- FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<string>())));
+ FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, mapMultiArgs.count("-uacomment") ? mapMultiArgs["-uacomment"] : std::vector<string>())));
obj.push_back(Pair("protocolversion",PROTOCOL_VERSION));
obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices)));
obj.push_back(Pair("timeoffset", GetTimeOffset()));