aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:33:35 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:33:35 +0200
commitc761bee76465b6b2f4d47c53a94ab731ac21b764 (patch)
tree42afe7c89960c667448cbbba4b1034ff5e38e69b /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4555 (diff)
parentReturn appropriate RPC error code when key image signature check fails (diff)
downloadmonero-c761bee76465b6b2f4d47c53a94ab731ac21b764.tar.xz
Merge pull request #4561
04ddf02e Return appropriate RPC error code when key image signature check fails (Michał Sałaban)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index c30bafc09..6dbea2e14 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -3072,6 +3072,11 @@ namespace tools
er.code = WALLET_RPC_ERROR_CODE_ADDRESS_INDEX_OUT_OF_BOUNDS;
er.message = e.what();
}
+ catch (const error::signature_check_failed& e)
+ {
+ er.code = WALLET_RPC_ERROR_CODE_WRONG_SIGNATURE;
+ er.message = e.what();
+ }
catch (const std::exception& e)
{
er.code = default_error_code;