changeset 421:730526fd7d8e draft

Repeatedly resetting the timestamp for seed nodes in the database was slow. Only update the database if it's a real change.
author Chris Moore <dooglus@gmail.com>
date Mon, 24 Jan 2011 14:47:36 -0800
parents e6a4aab58da9
children 938e52a06d02
files net.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net.cpp
+++ b/net.cpp
@@ -1022,7 +1022,7 @@
                 {
                     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);