diff options
| author | Pavol Rusnak <[email protected]> | 2015-07-28 01:58:25 +0200 |
|---|---|---|
| committer | Pavol Rusnak <[email protected]> | 2015-07-31 16:19:23 +0200 |
| commit | 557f8eac7aa96059270a36358642fbce93ac0478 (patch) | |
| tree | 963e6f48d33b75d56f735bff136bc8dc03450192 /src/rpcnet.cpp | |
| parent | Merge pull request #6473 (diff) | |
| download | discoin-557f8eac7aa96059270a36358642fbce93ac0478.tar.xz discoin-557f8eac7aa96059270a36358642fbce93ac0478.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index ed903f9fd..f9c7d3ad3 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())); |