mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
net: remove unused set
This commit is contained in:
parent
52cbce287a
commit
9faa4902cd
1 changed files with 0 additions and 10 deletions
10
src/net.cpp
10
src/net.cpp
|
@ -97,9 +97,6 @@ limitedmap<uint256, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
|
||||||
static std::deque<std::string> vOneShots;
|
static std::deque<std::string> vOneShots;
|
||||||
CCriticalSection cs_vOneShots;
|
CCriticalSection cs_vOneShots;
|
||||||
|
|
||||||
std::set<CNetAddr> setservAddNodeAddresses;
|
|
||||||
CCriticalSection cs_setservAddNodeAddresses;
|
|
||||||
|
|
||||||
std::vector<std::string> vAddedNodes;
|
std::vector<std::string> vAddedNodes;
|
||||||
CCriticalSection cs_vAddedNodes;
|
CCriticalSection cs_vAddedNodes;
|
||||||
|
|
||||||
|
@ -1660,14 +1657,7 @@ void ThreadOpenAddedConnections()
|
||||||
BOOST_FOREACH(const std::string& strAddNode, lAddresses) {
|
BOOST_FOREACH(const std::string& strAddNode, lAddresses) {
|
||||||
std::vector<CService> vservNode(0);
|
std::vector<CService> vservNode(0);
|
||||||
if(Lookup(strAddNode.c_str(), vservNode, Params().GetDefaultPort(), fNameLookup, 0))
|
if(Lookup(strAddNode.c_str(), vservNode, Params().GetDefaultPort(), fNameLookup, 0))
|
||||||
{
|
|
||||||
lservAddressesToAdd.push_back(vservNode);
|
lservAddressesToAdd.push_back(vservNode);
|
||||||
{
|
|
||||||
LOCK(cs_setservAddNodeAddresses);
|
|
||||||
BOOST_FOREACH(const CService& serv, vservNode)
|
|
||||||
setservAddNodeAddresses.insert(serv);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Attempt to connect to each IP for each addnode entry until at least one is successful per addnode entry
|
// Attempt to connect to each IP for each addnode entry until at least one is successful per addnode entry
|
||||||
// (keeping in mind that addnode entries can have many IPs if fNameLookup)
|
// (keeping in mind that addnode entries can have many IPs if fNameLookup)
|
||||||
|
|
Loading…
Reference in a new issue