diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2017-07-06 13:53:52 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-11-02 13:15:02 -0400 |
commit | 8aee55af3d21fb79edf148e42c3bd10bf80f7ec8 (patch) | |
tree | 9ecea5ae74040a03ea9746380830c14bdb64f8b6 /src/net_processing.h | |
parent | 6f279652b04eea5d11a3fdf6eac5865f0b8557c5 (diff) | |
download | bitcoin-8aee55af3d21fb79edf148e42c3bd10bf80f7ec8.tar.xz |
net: pass CConnman via pointer rather than reference
There are a few too many edge-cases here to make this a scripted diff.
The following commits will move a few functions into PeerLogicValidation, where
the local connman instance can be used. This change prepares for that usage.
Github-Pull: #10756
Rebased-From: 28f11e9406b185dc87144f1f29af0d93eb115b4e
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 db6d81e6b6..84ec7a7662 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -53,7 +53,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, const 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. * @@ -62,6 +62,6 @@ bool ProcessMessages(CNode* pfrom, CConnman& connman, const std::atomic<bool>& i * @param[in] interrupt Interrupt condition for processing threads * @return True if there is more work to be done */ -bool SendMessages(CNode* pto, CConnman& connman, const std::atomic<bool>& interrupt); +bool SendMessages(CNode* pto, CConnman* connman, const std::atomic<bool>& interrupt); #endif // BITCOIN_NET_PROCESSING_H |