mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 00:04:14 -04:00
Return appropriate RPC error code when key image signature check fails
This commit is contained in:
parent
77e1ebff26
commit
04ddf02e3a
3 changed files with 15 additions and 1 deletions
|
@ -2906,6 +2906,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue