From d1a2295f0d58423652b124b48fc887a9721b765c Mon Sep 17 00:00:00 2001 From: Jeremy Rubin Date: Wed, 15 Jun 2016 19:28:04 -0400 Subject: Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting --- src/net.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/net.h') 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 func); - bool ForEachNode(std::function func); - bool ForEachNode(std::function func) const; - bool ForEachNodeThen(std::function pre, std::function post); - bool ForEachNodeThen(std::function pre, std::function post) const; + bool ForEachNodeContinueIf(std::function func); + bool ForEachNodeContinueIf(std::function func) const; + bool ForEachNodeContinueIfThen(std::function pre, std::function post); + bool ForEachNodeContinueIfThen(std::function pre, std::function post) const; + void ForEachNode(std::function func); + void ForEachNode(std::function func) const; + void ForEachNodeThen(std::function pre, std::function post); + void ForEachNodeThen(std::function pre, std::function post) const; void RelayTransaction(const CTransaction& tx); -- cgit v1.2.3