aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-10-08 11:00:53 +0100
committerJohn Newbery <john@johnnewbery.com>2020-12-07 11:57:12 +0000
commita20ab22786466fe5164b53e62de9d23a4062fbca (patch)
tree6afefffc3b9cd39bd482a2be7dc06de27353b20d /src/net_processing.h
parented7e469ceec6f7101a3fb7b15c21a6fb69697866 (diff)
downloadbitcoin-a20ab22786466fe5164b53e62de9d23a4062fbca.tar.xz
[net processing] Make GetPeerRef const
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 0697cf82c3..6076e62732 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -141,7 +141,7 @@ public:
private:
/** Get a shared pointer to the Peer object.
* May return an empty shared_ptr if the Peer object can't be found. */
- PeerRef GetPeerRef(NodeId id);
+ PeerRef GetPeerRef(NodeId id) const;
/**
* Potentially mark a node discouraged based on the contents of a BlockValidationState object
@@ -193,7 +193,7 @@ private:
int64_t m_stale_tip_check_time; //!< Next time to check for stale tip
/** Protects m_peer_map */
- Mutex m_peer_mutex;
+ mutable Mutex m_peer_mutex;
/**
* Map of all Peer objects, keyed by peer id. This map is protected
* by the m_peer_mutex. Once a shared pointer reference is