Move CNode::addrName accesses behind locked accessors

This commit is contained in:
Matt Corallo
2017-02-06 12:04:34 -05:00
parent d8f2b8a8c0
commit 036073bf87
3 changed files with 30 additions and 10 deletions

View File

@@ -264,7 +264,7 @@ void PushNodeVersion(CNode *pnode, CConnman& connman, int64_t nTime)
void InitializeNode(CNode *pnode, CConnman& connman) {
CAddress addr = pnode->addr;
std::string addrName = pnode->addrName;
std::string addrName = pnode->GetAddrName();
NodeId nodeid = pnode->GetId();
{
LOCK(cs_main);