aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/daemon_handler.cpp
diff options
context:
space:
mode:
authorJethro Grassie <jtg@xtrabass.com>2018-11-20 13:18:08 -0500
committerJethro Grassie <jtg@xtrabass.com>2018-11-21 12:56:34 -0500
commit517f25efd1d8cc6f10f777b6f8ddd79a088fae4b (patch)
treeee28b49f01396e7559ebf1c88f1d81e70773e3b1 /src/rpc/daemon_handler.cpp
parentMerge pull request #4781 (diff)
downloadmonero-517f25efd1d8cc6f10f777b6f8ddd79a088fae4b.tar.xz
rpc: add version to get_info
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
-rw-r--r--src/rpc/daemon_handler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp
index 64a5cc858..e2885dbb5 100644
--- a/src/rpc/daemon_handler.cpp
+++ b/src/rpc/daemon_handler.cpp
@@ -34,6 +34,7 @@
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "cryptonote_basic/blobdatatype.h"
#include "ringct/rctSigs.h"
+#include "version.h"
namespace cryptonote
{
@@ -437,6 +438,7 @@ namespace rpc
res.info.block_size_limit = res.info.block_weight_limit = m_core.get_blockchain_storage().get_current_cumulative_block_weight_limit();
res.info.block_size_median = res.info.block_weight_median = m_core.get_blockchain_storage().get_current_cumulative_block_weight_median();
res.info.start_time = (uint64_t)m_core.get_start_time();
+ res.info.version = MONERO_VERSION;
res.status = Message::STATUS_OK;
res.error_details = "";