aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-04-16 15:46:00 -0400
committerCory Fields <[email protected]>2016-09-08 12:06:24 -0400
commit02137f11e2ea5d153f433493639730587836a1e3 (patch)
tree9d46cc20dbc21c6220adb1f62fe1485ae7f724f1 /src/net.cpp
parentnet: Pass CConnection to wallet rather than using the global (diff)
downloaddiscoin-02137f11e2ea5d153f433493639730587836a1e3.tar.xz
discoin-02137f11e2ea5d153f433493639730587836a1e3.zip
net: Move socket binding into CConnman
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b99989b28..006982000 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -84,7 +84,6 @@ std::map<CNetAddr, LocalServiceInfo> mapLocalHost;
static bool vfLimited[NET_MAX] = {};
static CNode* pnodeLocalHost = NULL;
uint64_t nLocalHostNonce = 0;
-static std::vector<ListenSocket> vhListenSocket;
CAddrMan addrman;
int nMaxConnections = DEFAULT_MAX_PEER_CONNECTIONS;
bool fAddressesInitialized = false;
@@ -1908,7 +1907,7 @@ void CConnman::ThreadMessageHandler()
-bool BindListenPort(const CService &addrBind, std::string& strError, bool fWhitelisted)
+bool CConnman::BindListenPort(const CService &addrBind, std::string& strError, bool fWhitelisted)
{
strError = "";
int nOne = 1;