mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 10:34:27 -04:00
Merge pull request #4561
04ddf02e
Return appropriate RPC error code when key image signature check fails (Michał Sałaban)
This commit is contained in:
commit
c761bee764
3 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue