diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-06-16 14:10:11 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-16 14:10:11 -0500 |
commit | e3012444fb24ea9cd35d6cc8ce601df689fca395 (patch) | |
tree | df69beb7cee444dd525dbe164c11191146aa22b6 /src | |
parent | Merge pull request #3735 (diff) | |
parent | check_spend_proof (diff) | |
download | monero-e3012444fb24ea9cd35d6cc8ce601df689fca395.tar.xz |
Merge pull request #3762
eb9f3a3 check_spend_proof (itssteven)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index d2db45f12..3d7b4e366 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8430,8 +8430,9 @@ bool wallet2::check_spend_proof(const crypto::hash &txid, const std::string &mes } std::vector<std::vector<crypto::signature>> signatures = { std::vector<crypto::signature>(1) }; const size_t sig_len = tools::base58::encode(std::string((const char *)&signatures[0][0], sizeof(crypto::signature))).size(); - THROW_WALLET_EXCEPTION_IF(sig_str.size() != header_len + num_sigs * sig_len, - error::wallet_internal_error, "incorrect signature size"); + if( sig_str.size() != header_len + num_sigs * sig_len ) { + return false; + } // decode base58 signatures.clear(); |