diff options
author | Chris Moore <dooglus@gmail.com> | 2011-01-24 14:47:36 -0800 |
---|---|---|
committer | Chris Moore <dooglus@gmail.com> | 2011-01-24 14:47:36 -0800 |
commit | 10abe4f26e83ddc56a984a5be2b901e206ada75d (patch) | |
tree | 7fe24ea28848073e2e8f1fc2bc907c6be68c8835 /net.cpp | |
parent | 84e7ad922bc6b59219d0b5f2220b531eb549c8f5 (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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |