aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.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/core_rpc_server.cpp
parentMerge pull request #4781 (diff)
downloadmonero-517f25efd1d8cc6f10f777b6f8ddd79a088fae4b.tar.xz
rpc: add version to get_info
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index df9eee781..48c9a5aa0 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -210,6 +210,7 @@ namespace cryptonote
}
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
res.update_available = m_core.is_update_available();
+ res.version = m_restricted ? "" : MONERO_VERSION;
return true;
}
//------------------------------------------------------------------------------------------------------------------------------
@@ -1609,6 +1610,7 @@ namespace cryptonote
}
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
res.update_available = m_core.is_update_available();
+ res.version = m_restricted ? "" : MONERO_VERSION;
return true;
}
//------------------------------------------------------------------------------------------------------------------------------