mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 06:32:30 -04:00
wallet_rpc_server: add a get_version RPC
This commit is contained in:
parent
1f96755ddc
commit
c1bda097c1
3 changed files with 37 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue