From fba40889418cb1861440a3fdccee048c69f0fb89 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Thu, 5 Nov 2009 04:41:36 +0000 Subject: unix build merged in, bitmap resources from xpm instead of rc, better addr relay, better selection of addrs by time last seen for faster connect --- irc.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'irc.cpp') diff --git a/irc.cpp b/irc.cpp index f839dc5224..4d4ed0f414 100644 --- a/irc.cpp +++ b/irc.cpp @@ -4,10 +4,7 @@ #include "headers.h" - -map, CAddress> mapIRCAddresses; -CCriticalSection cs_mapIRCAddresses; - +int nGotIRCAddresses = 0; @@ -259,16 +256,7 @@ void ThreadIRCSeed(void* parg) CAddrDB addrdb; if (AddAddress(addrdb, addr)) printf("IRC got new address\n"); - else - { - // make it try connecting again - CRITICAL_BLOCK(cs_mapAddresses) - if (mapAddresses.count(addr.GetKey())) - mapAddresses[addr.GetKey()].nLastFailed = 0; - } - - CRITICAL_BLOCK(cs_mapIRCAddresses) - mapIRCAddresses.insert(make_pair(addr.GetKey(), addr)); + nGotIRCAddresses++; } else { -- cgit v1.2.3