Skip to content
Permalink
Browse files

Send bad signature in spendproof

  • Loading branch information...
miltonf committed Apr 3, 2019
1 parent 6a489c4 commit affe5dd759b22523bc2d1298b6728406a0d4c09c
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/wallet/wallet2.cpp
@@ -8463,8 +8463,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();

0 comments on commit affe5dd

Please sign in to comment.
You can’t perform that action at this time.