Add HasVotedOnId/GetVoteForId to CSigningManager

These just pass through to CRecoveredSigsDb
This commit is contained in:
Alexander Block 2019-03-08 17:57:53 +01:00
parent 43e1bf674e
commit d4cf78fe25
2 changed files with 13 additions and 0 deletions

View File

@ -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);

View File

@ -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