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
2013-01-27 03:03:04 -05:00
committed by Matt Corallo
parent d3ab598fd5
commit 74088e862e
2 changed files with 41 additions and 21 deletions
+3
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;