diff options
author | fanquake <fanquake@gmail.com> | 2018-07-02 10:26:47 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2018-07-08 21:27:12 +0800 |
commit | c469ecf22e8ab55acf2cf8fc6fcf34415b541f76 (patch) | |
tree | da5d7ebdb294fce04a8834a4ac90f3dcf4552d3d /src/net_processing.h | |
parent | 88a15ebc8d317a6fd4851adb344ff944d497284c (diff) |
net: Remove unused interrupt from SendMessages
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 3bdb4785a2..0d97b316eb 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -68,16 +68,20 @@ public: void InitializeNode(CNode* pnode) override; /** Handle removal of a peer by updating various state and removing it from mapNodeState */ void FinalizeNode(NodeId nodeid, bool& fUpdateConnectionTime) override; - /** Process protocol messages received from a given node */ + /** + * Process protocol messages received from a given node + * + * @param[in] pfrom The node which we have received messages from. + * @param[in] interrupt Interrupt condition for processing threads + */ bool ProcessMessages(CNode* pfrom, std::atomic<bool>& interrupt) override; /** * Send queued protocol messages to be sent to a give node. * * @param[in] pto The node which we are sending messages to. - * @param[in] interrupt Interrupt condition for processing threads * @return True if there is more work to be done */ - bool SendMessages(CNode* pto, std::atomic<bool>& interrupt) override EXCLUSIVE_LOCKS_REQUIRED(pto->cs_sendProcessing); + bool SendMessages(CNode* pto) override EXCLUSIVE_LOCKS_REQUIRED(pto->cs_sendProcessing); /** Consider evicting an outbound peer based on the amount of time they've been behind our tip */ void ConsiderEviction(CNode *pto, int64_t time_in_seconds); |