mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
privatesend: Drop redundant CBLSSignature.IsValid() checks (#3866)
It's checked in VerifyInsecure already
This commit is contained in:
parent
cf64339517
commit
5c5340a728
@ -63,7 +63,7 @@ bool CPrivateSendQueue::CheckSignature(const CBLSPublicKey& blsPubKey) const
|
||||
|
||||
CBLSSignature sig;
|
||||
sig.SetBuf(vchSig);
|
||||
if (!sig.IsValid() || !sig.VerifyInsecure(blsPubKey, hash)) {
|
||||
if (!sig.VerifyInsecure(blsPubKey, hash)) {
|
||||
LogPrint(BCLog::PRIVATESEND, "CPrivateSendQueue::CheckSignature -- VerifyInsecure() failed\n");
|
||||
return false;
|
||||
}
|
||||
@ -113,7 +113,7 @@ bool CPrivateSendBroadcastTx::CheckSignature(const CBLSPublicKey& blsPubKey) con
|
||||
|
||||
CBLSSignature sig;
|
||||
sig.SetBuf(vchSig);
|
||||
if (!sig.IsValid() || !sig.VerifyInsecure(blsPubKey, hash)) {
|
||||
if (!sig.VerifyInsecure(blsPubKey, hash)) {
|
||||
LogPrint(BCLog::PRIVATESEND, "CPrivateSendBroadcastTx::CheckSignature -- VerifyInsecure() failed\n");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user