aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-14 15:23:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-14 15:23:31 -0500
commitdd3b5ecb98aea5440da6059abc7060e1c45c7621 (patch)
tree1212d1130f219155808d94b0697d2aa34e872fd4 /src
parentMerge pull request #4851 (diff)
parentfunctional_tests: add validate_address tests (diff)
downloadmonero-dd3b5ecb98aea5440da6059abc7060e1c45c7621.tar.xz
Merge pull request #5478
7d9b7fe functional_tests: add validate_address tests (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet_rpc_server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index b38c2f7c8..844ecf90c 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -4091,9 +4091,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)