mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting
This commit is contained in:
committed by
Cory Fields
parent
98591c5027
commit
d1a2295f0d
12
src/net.h
12
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user