diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-05-31 14:43:18 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-05-31 14:43:18 -0500 |
commit | 3ee6a1b70621f0c4d6038d9ce78abfd96e951db0 (patch) | |
tree | f0ca372c78f90be0b71924b3523a84e4069445e3 /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #3592 (diff) | |
parent | wallet_rpc_server: add a get_version RPC (diff) | |
download | monero-3ee6a1b70621f0c4d6038d9ce78abfd96e951db0.tar.xz |
Merge pull request #3635
c1bda09 wallet_rpc_server: add a get_version RPC (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-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) { |