aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-14 13:34:05 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-14 13:34:05 +0100
commitc1bda097c18036853076806d7ed4fea2d20eb727 (patch)
tree12a5e35cedec291eb3b9d4cda44618458d4904cb /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #3618 (diff)
downloadmonero-c1bda097c18036853076806d7ed4fea2d20eb727.tar.xz
wallet_rpc_server: add a get_version RPC
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index a9d211532..3161286a7 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -2876,6 +2876,12 @@ namespace tools
return true;
}
//------------------------------------------------------------------------------------------------------------------------------
+ bool wallet_rpc_server::on_get_version(const wallet_rpc::COMMAND_RPC_GET_VERSION::request& req, wallet_rpc::COMMAND_RPC_GET_VERSION::response& res, epee::json_rpc::error& er)
+ {
+ res.version = WALLET_RPC_VERSION;
+ return true;
+ }
+ //------------------------------------------------------------------------------------------------------------------------------
}
int main(int argc, char** argv) {