Add HasVotedOnId/GetVoteForId to CSigningManager
These just pass through to CRecoveredSigsDb
This commit is contained in:
parent
43e1bf674e
commit
d4cf78fe25
@ -686,6 +686,16 @@ bool CSigningManager::IsConflicting(Consensus::LLMQType llmqType, const uint256&
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CSigningManager::HasVotedOnId(Consensus::LLMQType llmqType, const uint256& id)
|
||||
{
|
||||
return db.HasVotedOnId(llmqType, id);
|
||||
}
|
||||
|
||||
bool CSigningManager::GetVoteForId(Consensus::LLMQType llmqType, const uint256& id, uint256& msgHashRet)
|
||||
{
|
||||
return db.GetVoteForId(llmqType, id, msgHashRet);
|
||||
}
|
||||
|
||||
CQuorumCPtr CSigningManager::SelectQuorumForSigning(Consensus::LLMQType llmqType, int signHeight, const uint256& selectionHash)
|
||||
{
|
||||
auto& llmqParams = Params().GetConsensus().llmqs.at(llmqType);
|
||||
|
@ -170,6 +170,9 @@ public:
|
||||
bool HasRecoveredSigForSession(const uint256& signHash);
|
||||
bool IsConflicting(Consensus::LLMQType llmqType, const uint256& id, const uint256& msgHash);
|
||||
|
||||
bool HasVotedOnId(Consensus::LLMQType llmqType, const uint256& id);
|
||||
bool GetVoteForId(Consensus::LLMQType llmqType, const uint256& id, uint256& msgHashRet);
|
||||
|
||||
CQuorumCPtr SelectQuorumForSigning(Consensus::LLMQType llmqType, int signHeight, const uint256& selectionHash);
|
||||
|
||||
// Verifies a recovered sig that was signed while the chain tip was at signedAtTip
|
||||
|
Loading…
Reference in New Issue
Block a user