Merge pull request #3762

eb9f3a3 check_spend_proof (itssteven)
This commit is contained in:
luigi1111 2018-06-16 14:10:11 -05:00
commit e3012444fb
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 3 additions and 2 deletions

View File

@ -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) }; 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(); 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, if( sig_str.size() != header_len + num_sigs * sig_len ) {
error::wallet_internal_error, "incorrect signature size"); return false;
}
// decode base58 // decode base58
signatures.clear(); signatures.clear();