Skip to content

Commit

Permalink
Drop unused overload of GetMasternodeQuorums
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jan 11, 2019
1 parent 5daeeda commit 3fe9910
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2612,16 +2612,6 @@ bool CConnman::HasMasternodeQuorumNodes(Consensus::LLMQType llmqType, const uint
return masternodeQuorumNodes.count(std::make_pair(llmqType, quorumHash));
}

std::set<std::pair<Consensus::LLMQType, uint256>> CConnman::GetMasternodeQuorums()
{
LOCK(cs_vPendingMasternodes);
std::set<std::pair<Consensus::LLMQType, uint256>> result;
for (auto& p : masternodeQuorumNodes) {
result.emplace(p.first);
}
return result;
}

std::set<uint256> CConnman::GetMasternodeQuorums(Consensus::LLMQType llmqType)
{
LOCK(cs_vPendingMasternodes);
Expand Down
1 change: 0 additions & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ class CConnman
bool AddPendingMasternode(const CService& addr);
bool AddMasternodeQuorumNodes(Consensus::LLMQType llmqType, const uint256& quorumHash, const std::set<CService>& addresses);
bool HasMasternodeQuorumNodes(Consensus::LLMQType llmqType, const uint256& quorumHash);
std::set<std::pair<Consensus::LLMQType, uint256>> GetMasternodeQuorums();
std::set<uint256> GetMasternodeQuorums(Consensus::LLMQType llmqType);
std::set<CService> GetMasternodeQuorumAddresses(Consensus::LLMQType llmqType, const uint256& quorumHash) const;
// also returns QWATCH nodes
Expand Down

0 comments on commit 3fe9910

Please sign in to comment.