Skip to content

Commit 3955c39

Browse files
committed
Merge pull request #4584
0430c30 Add missing FindNode prototype to net.h (Wladimir J. van der Laan)
2 parents 32235a3 + 0430c30 commit 3955c39

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ CNode* FindNode(const CNetAddr& ip)
456456
return NULL;
457457
}
458458

459-
CNode* FindNode(std::string addrName)
459+
CNode* FindNode(const std::string& addrName)
460460
{
461461
LOCK(cs_vNodes);
462462
BOOST_FOREACH(CNode* pnode, vNodes)

src/net.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ bool RecvLine(SOCKET hSocket, std::string& strLine);
5959
bool GetMyExternalIP(CNetAddr& ipRet);
6060
void AddressCurrentlyConnected(const CService& addr);
6161
CNode* FindNode(const CNetAddr& ip);
62+
CNode* FindNode(const std::string& addrName);
6263
CNode* FindNode(const CService& ip);
6364
CNode* ConnectNode(CAddress addrConnect, const char *pszDest = NULL);
6465
bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOutbound = NULL, const char *strDest = NULL, bool fOneShot = false);

0 commit comments

Comments
 (0)