aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-10 16:49:40 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-10 16:49:40 +0100
commit014f3a0d39e5314c13ae7420283b1ea5eb593517 (patch)
treec7e5ce5486436584e0f9e65037b07e0060a966a8 /src/rpc/core_rpc_server.cpp
parentMerge pull request #889 (diff)
downloadmonero-014f3a0d39e5314c13ae7420283b1ea5eb593517.tar.xz
Add a daemon RPC version, and make simplewallet check it
If the version is different, simplewallet will refuse to use that daemon, unless --allow-mismatched-daemon-version is used.
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index ca18e7e09..35200c5f9 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1146,6 +1146,13 @@ namespace cryptonote
return true;
}
//------------------------------------------------------------------------------------------------------------------------------
+ bool core_rpc_server::on_get_version(const COMMAND_RPC_GET_VERSION::request& req, COMMAND_RPC_GET_VERSION::response& res, epee::json_rpc::error& error_resp)
+ {
+ res.version = CORE_RPC_VERSION;
+ res.status = CORE_RPC_STATUS_OK;
+ return true;
+ }
+ //------------------------------------------------------------------------------------------------------------------------------
bool core_rpc_server::on_fast_exit(const COMMAND_RPC_FAST_EXIT::request& req, COMMAND_RPC_FAST_EXIT::response& res)
{
cryptonote::core::set_fast_exit();