mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
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
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 New Issue
Block a user