aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-01-16 02:11:04 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-01-16 16:47:11 +0100
commit0639aba42ad8449fe43eb2aad0ffbe3390aabd37 (patch)
tree5487096b294c64265421a1e0a3a10fe5071d2824 /src/net.h
parent807169e10b4a18324356ed6ee4d69587b96a7c70 (diff)
downloadbitcoin-0639aba42ad8449fe43eb2aad0ffbe3390aabd37.tar.xz
scripted-diff: rename `cs_SubVer` -> `m_subver_mutex`
-BEGIN VERIFY SCRIPT- sed -i 's/cs_SubVer/m_subver_mutex/g' ./src/net.h ./src/net.cpp ./src/net_processing.cpp -END VERIFY SCRIPT-
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 80fc93a5d0..14c94c0319 100644
--- a/src/net.h
+++ b/src/net.h
@@ -434,12 +434,12 @@ public:
//! Whether this peer is an inbound onion, i.e. connected via our Tor onion service.
const bool m_inbound_onion;
std::atomic<int> nVersion{0};
- RecursiveMutex cs_SubVer;
+ RecursiveMutex m_subver_mutex;
/**
* cleanSubVer is a sanitized string of the user agent byte array we read
* from the wire. This cleaned string can safely be logged or displayed.
*/
- std::string cleanSubVer GUARDED_BY(cs_SubVer){};
+ std::string cleanSubVer GUARDED_BY(m_subver_mutex){};
bool m_prefer_evict{false}; // This peer is preferred for eviction.
bool HasPermission(NetPermissionFlags permission) const {
return NetPermissions::HasFlag(m_permissionFlags, permission);