aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-25 11:05:52 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-25 11:06:11 +0200
commit3955c3940eff83518c186facfec6f50545b5aab5 (patch)
tree689954b14dd2d953ea72fce9fae2c243488955da
parent32235a3bb9beb8b9841f4bd68aeefbf204ac2ee9 (diff)
parent0430c30af118637819f70eaf3d10a77d910639e3 (diff)
Merge pull request #4584
0430c30 Add missing FindNode prototype to net.h (Wladimir J. van der Laan)
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 5a48cb5562..6c636d16b4 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -456,7 +456,7 @@ CNode* FindNode(const CNetAddr& ip)
return NULL;
}
-CNode* FindNode(std::string addrName)
+CNode* FindNode(const std::string& addrName)
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
diff --git a/src/net.h b/src/net.h
index f029a8d935..2d9325abf9 100644
--- a/src/net.h
+++ b/src/net.h
@@ -59,6 +59,7 @@ bool RecvLine(SOCKET hSocket, std::string& strLine);
bool GetMyExternalIP(CNetAddr& ipRet);
void AddressCurrentlyConnected(const CService& addr);
CNode* FindNode(const CNetAddr& ip);
+CNode* FindNode(const std::string& addrName);
CNode* FindNode(const CService& ip);
CNode* ConnectNode(CAddress addrConnect, const char *pszDest = NULL);
bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOutbound = NULL, const char *strDest = NULL, bool fOneShot = false);