aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJeremy Rubin <jeremy.l.rubin@gmail.com>2016-06-15 19:28:04 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-09-08 13:06:05 -0400
commitd1a2295f0d58423652b124b48fc887a9721b765c (patch)
tree72922e98c159106a37c8efdc2670630ab814f8cf /src/net.h
parent98591c50273b13cfc5419548b527280d6a84a43d (diff)
Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/net.h b/src/net.h
index 018126d677..6ee0430f22 100644
--- a/src/net.h
+++ b/src/net.h
@@ -129,10 +129,14 @@ public:
bool CheckIncomingNonce(uint64_t nonce);
bool ForNode(NodeId id, std::function<bool(CNode* pnode)> func);
- bool ForEachNode(std::function<bool(CNode* pnode)> func);
- bool ForEachNode(std::function<bool(const CNode* pnode)> func) const;
- bool ForEachNodeThen(std::function<bool(CNode* pnode)> pre, std::function<void()> post);
- bool ForEachNodeThen(std::function<bool(const CNode* pnode)> pre, std::function<void()> post) const;
+ bool ForEachNodeContinueIf(std::function<bool(CNode* pnode)> func);
+ bool ForEachNodeContinueIf(std::function<bool(const CNode* pnode)> func) const;
+ bool ForEachNodeContinueIfThen(std::function<bool(CNode* pnode)> pre, std::function<void()> post);
+ bool ForEachNodeContinueIfThen(std::function<bool(const CNode* pnode)> pre, std::function<void()> post) const;
+ void ForEachNode(std::function<void(CNode* pnode)> func);
+ void ForEachNode(std::function<void(const CNode* pnode)> func) const;
+ void ForEachNodeThen(std::function<void(CNode* pnode)> pre, std::function<void()> post);
+ void ForEachNodeThen(std::function<void(const CNode* pnode)> pre, std::function<void()> post) const;
void RelayTransaction(const CTransaction& tx);