Browse Source

Repeatedly resetting the timestamp for seed nodes in the database was slow. Only update the database if it's a real change.

miguelfreitas
Chris Moore 14 years ago
parent
commit
10abe4f26e
  1. 2
      net.cpp

2
net.cpp

@ -1022,7 +1022,7 @@ void ThreadOpenConnections2(void* parg) @@ -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);

Loading…
Cancel
Save