Skip to content

Commit c4a31ca

Browse files
committed
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-
1 parent 63fc2f5 commit c4a31ca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,12 @@ std::string ConnectionTypeAsString(ConnectionType conn_type)
553553

554554
CService CNode::GetAddrLocal() const
555555
{
556-
LOCK(cs_addrLocal);
556+
LOCK(m_addr_local_mutex);
557557
return addrLocal;
558558
}
559559

560560
void CNode::SetAddrLocal(const CService& addrLocalIn) {
561-
LOCK(cs_addrLocal);
561+
LOCK(m_addr_local_mutex);
562562
if (addrLocal.IsValid()) {
563563
error("Addr local already set for node: %i. Refusing to change from %s to %s", id, addrLocal.ToString(), addrLocalIn.ToString());
564564
} else {

src/net.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ class CNode
693693
std::list<CNetMessage> vRecvMsg; // Used only by SocketHandler thread
694694

695695
// Our address, as reported by the peer
696-
CService addrLocal GUARDED_BY(cs_addrLocal);
697-
mutable RecursiveMutex cs_addrLocal;
696+
CService addrLocal GUARDED_BY(m_addr_local_mutex);
697+
mutable RecursiveMutex m_addr_local_mutex;
698698

699699
mapMsgCmdSize mapSendBytesPerMsgCmd GUARDED_BY(cs_vSend);
700700
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv);

0 commit comments

Comments
 (0)