aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
diff options
context:
space:
mode:
authorChris Moore <[email protected]>2011-01-24 14:47:36 -0800
committerChris Moore <[email protected]>2011-01-24 14:47:36 -0800
commit10abe4f26e83ddc56a984a5be2b901e206ada75d (patch)
tree7fe24ea28848073e2e8f1fc2bc907c6be68c8835 /net.cpp
parentBump version number to 0.3.20 (diff)
downloaddiscoin-10abe4f26e83ddc56a984a5be2b901e206ada75d.tar.xz
discoin-10abe4f26e83ddc56a984a5be2b901e206ada75d.zip
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 bfa6b055a..b022dad9e 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);