mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
refactor: add a default for CopyNodeVector(cond)
This commit is contained in:
parent
f217e0ae7b
commit
544348f8ff
@ -4160,11 +4160,6 @@ std::vector<CNode*> CConnman::CopyNodeVector(std::function<bool(const CNode* pno
|
||||
return vecNodesCopy;
|
||||
}
|
||||
|
||||
std::vector<CNode*> CConnman::CopyNodeVector()
|
||||
{
|
||||
return CopyNodeVector(AllNodes);
|
||||
}
|
||||
|
||||
void CConnman::ReleaseNodeVector(const std::vector<CNode*>& vecNodes)
|
||||
{
|
||||
for(size_t i = 0; i < vecNodes.size(); ++i) {
|
||||
|
@ -1173,8 +1173,7 @@ public:
|
||||
ForEachNodeThen(FullyConnectedOnly, pre, post);
|
||||
}
|
||||
|
||||
std::vector<CNode*> CopyNodeVector(std::function<bool(const CNode* pnode)> cond);
|
||||
std::vector<CNode*> CopyNodeVector();
|
||||
std::vector<CNode*> CopyNodeVector(std::function<bool(const CNode* pnode)> cond = AllNodes);
|
||||
void ReleaseNodeVector(const std::vector<CNode*>& vecNodes);
|
||||
|
||||
void RelayTransaction(const CTransaction& tx, const bool is_dstx);
|
||||
|
Loading…
Reference in New Issue
Block a user