From 10abe4f26e83ddc56a984a5be2b901e206ada75d Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Mon, 24 Jan 2011 14:47:36 -0800 Subject: [PATCH] Repeatedly resetting the timestamp for seed nodes in the database was slow. Only update the database if it's a real change. --- net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.cpp b/net.cpp index bfa6b055a..b022dad9e 100644 --- a/net.cpp +++ b/net.cpp @@ -1022,7 +1022,7 @@ void ThreadOpenConnections2(void* parg) { foreach(PAIRTYPE(const vector, 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); -- 2.11.4.GIT