diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-01-31 23:07:20 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-01-31 23:45:47 +0100 |
commit | 0729102f99241b9716456ad40bf778c09f650b1b (patch) | |
tree | 75e5d3dae5e83419f3a9eaa97c12797f29076bbd /src/net_processing.h | |
parent | fc7f2ffad481870e62ab2f798f941577983c5a39 (diff) |
Net: pass interruptMsgProc as const where possible
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 7351c0e99c..9e3f1b7156 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -49,7 +49,7 @@ bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); void Misbehaving(NodeId nodeid, int howmuch); /** Process protocol messages received from a given node */ -bool ProcessMessages(CNode* pfrom, CConnman& connman, std::atomic<bool>& interrupt); +bool ProcessMessages(CNode* pfrom, CConnman& connman, const std::atomic<bool>& interrupt); /** * Send queued protocol messages to be sent to a give node. * @@ -58,6 +58,6 @@ bool ProcessMessages(CNode* pfrom, CConnman& connman, std::atomic<bool>& interru * @param[in] interrupt Interrupt condition for processing threads * @return True if there is more work to be done */ -bool SendMessages(CNode* pto, CConnman& connman, std::atomic<bool>& interrupt); +bool SendMessages(CNode* pto, CConnman& connman, const std::atomic<bool>& interrupt); #endif // BITCOIN_NET_PROCESSING_H |