From ff36cbe8d010bd17d7d8fe2ba9293864833884e2 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 14 Sep 2014 21:54:32 -0400 Subject: [PATCH] RPC getnetworkinfo: export local node's client sub-version string --- src/rpcnet.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 @@ -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()))); obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION)); obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices))); obj.push_back(Pair("timeoffset", GetTimeOffset()));