Skip to content

Commit

Permalink
[Trivial] Remove spammy log in CheckSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Mar 20, 2020
1 parent 1ba03cc commit e2c3e77
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/messagesigner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,11 @@ bool CSignedMessage::CheckSignature(const CPubKey& pubKey) const

if (nMessVersion == MessageVersion::MESS_VER_HASH) {
uint256 hash = GetSignatureHash();
if(!CHashSigner::VerifyHash(hash, pubKey, vchSig, strError))
return error("%s : VerifyHash failed: %s", __func__, strError);

} else {
std::string strMessage = GetStrMessage();
if(!CMessageSigner::VerifyMessage(pubKey, vchSig, strMessage, strError))
return error("%s : VerifyMessage failed: %s", __func__, strError);
return CHashSigner::VerifyHash(hash, pubKey, vchSig, strError);
}

return true;
std::string strMessage = GetStrMessage();
return CMessageSigner::VerifyMessage(pubKey, vchSig, strMessage, strError);
}

bool CSignedMessage::CheckSignature() const
Expand Down

0 comments on commit e2c3e77

Please sign in to comment.