Skip to content

Commit 0430c30

Browse files
committed
Add missing FindNode prototype to net.h
Also make the argument a const std::string & instead of pass-by-value.
1 parent ab651b2 commit 0430c30

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)