diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-25 10:17:28 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-25 10:17:29 +0200 |
commit | 58d4b232840ee52e67f73eda6c6bd3cc22355b37 (patch) | |
tree | 919878e3de37a8f915d2f3b9d3076430d4223e1a /src | |
parent | c4998661e4e4365e079b51a872f2d555a5a7837c (diff) | |
parent | ff36cbe8d010bd17d7d8fe2ba9293864833884e2 (diff) |
Merge pull request #4914
ff36cbe RPC getnetworkinfo: export local node's client sub-version string (Jeff Garzik)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcnet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 95f42eb47f..fb159d96f6 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -11,6 +11,7 @@ #include "sync.h" #include "timedata.h" #include "util.h" +#include "version.h" #include <boost/foreach.hpp> @@ -393,6 +394,8 @@ Value getnetworkinfo(const Array& params, bool fHelp) Object obj; obj.push_back(Pair("version", (int)CLIENT_VERSION)); + obj.push_back(Pair("subversion", + FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<string>()))); obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION)); obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices))); obj.push_back(Pair("timeoffset", GetTimeOffset())); |