Repeatedly resetting the timestamp for seed nodes in the database was slow. Only...
authorChris Moore <dooglus@gmail.com>
Mon, 24 Jan 2011 22:47:36 +0000 (14:47 -0800)
committerChris Moore <dooglus@gmail.com>
Mon, 24 Jan 2011 22:47:36 +0000 (14:47 -0800)
net.cpp

diff --git a/net.cpp b/net.cpp
index bfa6b05..b022dad 100644 (file)
--- a/net.cpp
+++ b/net.cpp
@@ -1022,7 +1022,7 @@ void ThreadOpenConnections2(void* parg)
                 {
                     foreach(PAIRTYPE(const vector<unsigned char>, CAddress)& item, mapAddresses)
                     {
-                        if (setSeed.count(item.second.ip))
+                        if (setSeed.count(item.second.ip) && item.second.nTime != 0)
                         {
                             item.second.nTime = 0;
                             CAddrDB().WriteAddress(item.second);