mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
[net processing] Make GetPeerRef const
This commit is contained in:
@@ -835,7 +835,7 @@ void PeerManager::FinalizeNode(const CNode& node, bool& fUpdateConnectionTime) {
|
||||
LogPrint(BCLog::NET, "Cleared nodestate for peer=%d\n", nodeid);
|
||||
}
|
||||
|
||||
PeerRef PeerManager::GetPeerRef(NodeId id)
|
||||
PeerRef PeerManager::GetPeerRef(NodeId id) const
|
||||
{
|
||||
LOCK(m_peer_mutex);
|
||||
auto it = m_peer_map.find(id);
|
||||
|
||||
Reference in New Issue
Block a user