functional_tests: add validate_address tests

This commit is contained in:
moneromooo-monero 2019-04-22 20:06:58 +00:00
parent 8adde33e01
commit 7d9b7fee43
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 126 additions and 3 deletions

View file

@ -4089,9 +4089,8 @@ namespace tools
}
}
er.code = WALLET_RPC_ERROR_CODE_WRONG_ADDRESS;
er.message = std::string("Invalid address");
return false;
res.valid = false;
return true;
}
//------------------------------------------------------------------------------------------------------------------------------
bool wallet_rpc_server::on_set_daemon(const wallet_rpc::COMMAND_RPC_SET_DAEMON::request& req, wallet_rpc::COMMAND_RPC_SET_DAEMON::response& res, epee::json_rpc::error& er, const connection_context *ctx)