diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-14 13:34:05 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-14 13:34:05 +0100 |
commit | c1bda097c18036853076806d7ed4fea2d20eb727 (patch) | |
tree | 12a5e35cedec291eb3b9d4cda44618458d4904cb /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #3618 (diff) | |
download | monero-c1bda097c18036853076806d7ed4fea2d20eb727.tar.xz |
wallet_rpc_server: add a get_version RPC
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 6 |
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) { |