aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
diff options
context:
space:
mode:
authorChris Moore <dooglus@gmail.com>2011-01-24 14:47:36 -0800
committerChris Moore <dooglus@gmail.com>2011-01-24 14:47:36 -0800
commit10abe4f26e83ddc56a984a5be2b901e206ada75d (patch)
tree7fe24ea28848073e2e8f1fc2bc907c6be68c8835 /net.cpp
parent84e7ad922bc6b59219d0b5f2220b531eb549c8f5 (diff)
Repeatedly resetting the timestamp for seed nodes in the database was slow. Only update the database if it's a real change.
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.cpp b/net.cpp
index bfa6b055a8..b022dad9ef 100644
--- 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);