aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw0xlt <94266259+w0xlt@users.noreply.github.com>2022-01-20 05:41:33 -0300
committerw0xlt <94266259+w0xlt@users.noreply.github.com>2022-01-20 05:43:10 -0300
commitc4a31ca267f74bff76a43878177d05d22825a203 (patch)
tree05c18b471ed0b99100cf393be208adc366395430 /src
parent63fc2f5cce6a73bf845e6f1b51f786c4f860e65f (diff)
downloadbitcoin-c4a31ca267f74bff76a43878177d05d22825a203.tar.xz
scripted-diff: rename cs_addrLocal -> m_addr_local_mutex
-BEGIN VERIFY SCRIPT- sed -i 's/cs_addrLocal/m_addr_local_mutex/g' -- $(git grep --files-with-matches 'cs_addrLocal') -END VERIFY SCRIPT-
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp4
-rw-r--r--src/net.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 7b8a87f90c..88ccc8817c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -553,12 +553,12 @@ std::string ConnectionTypeAsString(ConnectionType conn_type)
CService CNode::GetAddrLocal() const
{
- LOCK(cs_addrLocal);
+ LOCK(m_addr_local_mutex);
return addrLocal;
}
void CNode::SetAddrLocal(const CService& addrLocalIn) {
- LOCK(cs_addrLocal);
+ LOCK(m_addr_local_mutex);
if (addrLocal.IsValid()) {
error("Addr local already set for node: %i. Refusing to change from %s to %s", id, addrLocal.ToString(), addrLocalIn.ToString());
} else {
diff --git a/src/net.h b/src/net.h
index c79abb91c3..77acb610c3 100644
--- a/src/net.h
+++ b/src/net.h
@@ -693,8 +693,8 @@ private:
std::list<CNetMessage> vRecvMsg; // Used only by SocketHandler thread
// Our address, as reported by the peer
- CService addrLocal GUARDED_BY(cs_addrLocal);
- mutable RecursiveMutex cs_addrLocal;
+ CService addrLocal GUARDED_BY(m_addr_local_mutex);
+ mutable RecursiveMutex m_addr_local_mutex;
mapMsgCmdSize mapSendBytesPerMsgCmd GUARDED_BY(cs_vSend);
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv);