Repeatedly resetting the timestamp for seed nodes in the database was slow. Only update the database if it's a real change.
This commit is contained in:
parent
84e7ad922b
commit
10abe4f26e
1 changed files with 1 additions and 1 deletions
2
net.cpp
2
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);
|
||||
|
|
Loading…
Reference in a new issue