Use a copy in place of mapMultiArgs["-addnode"].

Also moves the DNS lookup of -addnode nodes into the repeated
loop, allowing -addnode to follow DNS changes.
This commit is contained in:
Matt Corallo
2012-07-02 19:55:16 +02:00
committed by Matt Corallo
parent d3ab598fd5
commit 74088e862e
2 changed files with 41 additions and 21 deletions

View File

@@ -102,6 +102,9 @@ extern std::deque<std::pair<int64, CInv> > vRelayExpiration;
extern CCriticalSection cs_mapRelay;
extern std::map<CInv, int64> mapAlreadyAskedFor;
extern std::vector<std::string> vAddedNodes;
extern CCriticalSection cs_vAddedNodes;