mirror of
https://github.com/monero-project/monero.git
synced 2026-01-16 14:53:00 -08:00
Return appropriate RPC error code when key image signature check fails
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user