diff options
author | Michał Sałaban <michal@salaban.info> | 2018-10-11 18:12:17 +0200 |
---|---|---|
committer | Michał Sałaban <michal@salaban.info> | 2018-10-11 18:12:17 +0200 |
commit | 04ddf02e3a6fb5ee4f4777e14625bd2d701add5c (patch) | |
tree | b2dbc06e06d49c5968f3631711a6e7dd90b56e4c /src/wallet/wallet_errors.h | |
parent | Merge pull request #4543 (diff) | |
download | monero-04ddf02e3a6fb5ee4f4777e14625bd2d701add5c.tar.xz |
Return appropriate RPC error code when key image signature check fails
Diffstat (limited to 'src/wallet/wallet_errors.h')
-rw-r--r-- | src/wallet/wallet_errors.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index bc518d04a..b3141985d 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -72,6 +72,7 @@ namespace tools // tx_parse_error // get_tx_pool_error // out_of_hashchain_bounds_error + // signature_check_failed // transfer_error * // get_outs_general_error // not_enough_unlocked_money @@ -418,6 +419,14 @@ namespace tools std::string to_string() const { return refresh_error::to_string(); } }; //---------------------------------------------------------------------------------------------------- + struct signature_check_failed : public wallet_logic_error + { + explicit signature_check_failed(std::string&& loc, const std::string& message) + : wallet_logic_error(std::move(loc), "Signature check failed " + message) + { + } + }; + //---------------------------------------------------------------------------------------------------- struct transfer_error : public wallet_logic_error { protected: |