diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-07-06 00:00:24 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-07-06 00:00:24 -0500 |
commit | 7a118f08f474e30164f0ca1b567ca0e6420b756a (patch) | |
tree | 7129ae494c39a125f059e9d3fd7d10db46d66a54 /src/wallet | |
parent | Merge pull request #8391 (diff) | |
parent | cryptonote_basic: catch crypto api errors (diff) | |
download | monero-7a118f08f474e30164f0ca1b567ca0e6420b756a.tar.xz |
Merge pull request #8394
4278a3a cryptonote_basic: catch crypto api errors (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index cb49d473e..da0d80420 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -12095,7 +12095,8 @@ bool wallet2::check_reserve_proof(const cryptonote::account_public_address &addr crypto::key_derivation derivation; THROW_WALLET_EXCEPTION_IF(!crypto::generate_key_derivation(proof.shared_secret, rct::rct2sk(rct::I), derivation), error::wallet_internal_error, "Failed to generate key derivation"); crypto::public_key subaddr_spendkey; - crypto::derive_subaddress_public_key(output_public_key, derivation, proof.index_in_tx, subaddr_spendkey); + THROW_WALLET_EXCEPTION_IF(!crypto::derive_subaddress_public_key(output_public_key, derivation, proof.index_in_tx, subaddr_spendkey), + error::wallet_internal_error, "Failed to derive subaddress public key"); THROW_WALLET_EXCEPTION_IF(subaddr_spendkeys.count(subaddr_spendkey) == 0, error::wallet_internal_error, "The address doesn't seem to have received the fund"); |