aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-12-04 17:28:24 +0200
committerRiccardo Spagni <ric@spagni.net>2018-12-04 17:28:24 +0200
commite282e9fa407b9a6dd44a72354142fcaaeb8c97b8 (patch)
tree7762d868657119fa9c9ca0ae16981cf5fc3a3778 /src/rpc/core_rpc_server.cpp
parentMerge pull request #4877 (diff)
parentrpc: add version to get_info (diff)
downloadmonero-e282e9fa407b9a6dd44a72354142fcaaeb8c97b8.tar.xz
Merge pull request #4878
517f25ef rpc: add version to get_info (Jethro Grassie)
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 a33540385..1bb353bb4 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -211,6 +211,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;
}
//------------------------------------------------------------------------------------------------------------------------------
@@ -1613,6 +1614,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;
}
//------------------------------------------------------------------------------------------------------------------------------