wallet_rpc_server: add a get_version RPC

This commit is contained in:
moneromooo-monero 2018-04-14 13:34:05 +01:00
parent 1f96755ddc
commit c1bda097c1
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 37 additions and 0 deletions

View file

@ -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) {