mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Fix CSigningManager::VerifyRecoveredSig (#3546)
This commit is contained in:
parent
aab4852801
commit
955e3868fb
@ -938,14 +938,12 @@ CQuorumCPtr CSigningManager::SelectQuorumForSigning(Consensus::LLMQType llmqType
|
||||
|
||||
bool CSigningManager::VerifyRecoveredSig(Consensus::LLMQType llmqType, int signedAtHeight, const uint256& id, const uint256& msgHash, const CBLSSignature& sig)
|
||||
{
|
||||
auto& llmqParams = Params().GetConsensus().llmqs.at(Params().GetConsensus().llmqTypeChainLocks);
|
||||
|
||||
auto quorum = SelectQuorumForSigning(llmqParams.type, signedAtHeight, id);
|
||||
auto quorum = SelectQuorumForSigning(llmqType, signedAtHeight, id);
|
||||
if (!quorum) {
|
||||
return false;
|
||||
}
|
||||
|
||||
uint256 signHash = CLLMQUtils::BuildSignHash(llmqParams.type, quorum->qc.quorumHash, id, msgHash);
|
||||
uint256 signHash = CLLMQUtils::BuildSignHash(llmqType, quorum->qc.quorumHash, id, msgHash);
|
||||
return sig.VerifyInsecure(quorum->qc.quorumPublicKey, signHash);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user