Skip to content

Commit

Permalink
Remove MarkXXX methods from CSigSharesNodeState
Browse files Browse the repository at this point in the history
We're now directly calling the Merge/Set methods on the inventory objects.
  • Loading branch information
codablock committed Feb 27, 2019
1 parent fa25728 commit 8ce8cb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
30 changes: 0 additions & 30 deletions src/llmq/quorums_signing_shares.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,36 +160,6 @@ bool CSigSharesNodeState::GetSessionInfoByRecvId(uint32_t sessionId, SessionInfo
return true;
}

void CSigSharesNodeState::MarkAnnounced(const uint256& signHash, const CSigSharesInv& inv)
{
GetOrCreateSession((Consensus::LLMQType)inv.llmqType, signHash).announced.Merge(inv);
}

void CSigSharesNodeState::MarkRequested(const uint256& signHash, const CSigSharesInv& inv)
{
GetOrCreateSession((Consensus::LLMQType)inv.llmqType, signHash).requested.Merge(inv);
}

void CSigSharesNodeState::MarkKnows(const uint256& signHash, const CSigSharesInv& inv)
{
GetOrCreateSession((Consensus::LLMQType)inv.llmqType, signHash).knows.Merge(inv);
}

void CSigSharesNodeState::MarkAnnounced(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember)
{
GetOrCreateSession(llmqType, signHash).announced.Set(quorumMember, true);
}

void CSigSharesNodeState::MarkRequested(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember)
{
GetOrCreateSession(llmqType, signHash).requested.Set(quorumMember, true);
}

void CSigSharesNodeState::MarkKnows(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember)
{
GetOrCreateSession(llmqType, signHash).knows.Set(quorumMember, true);
}

void CSigSharesNodeState::RemoveSession(const uint256& signHash)
{
auto it = sessions.find(signHash);
Expand Down
8 changes: 0 additions & 8 deletions src/llmq/quorums_signing_shares.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,6 @@ class CSigSharesNodeState
Session* GetSessionByRecvId(uint32_t sessionId);
bool GetSessionInfoByRecvId(uint32_t sessionId, SessionInfo& retInfo);

void MarkAnnounced(const uint256& signHash, const CSigSharesInv& inv);
void MarkRequested(const uint256& signHash, const CSigSharesInv& inv);
void MarkKnows(const uint256& signHash, const CSigSharesInv& inv);

void MarkAnnounced(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember);
void MarkRequested(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember);
void MarkKnows(Consensus::LLMQType llmqType, const uint256& signHash, uint16_t quorumMember);

void RemoveSession(const uint256& signHash);
};

Expand Down

0 comments on commit 8ce8cb9

Please sign in to comment.