mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Dump addresses every 15 minutes instead of 10 seconds
This commit is contained in:
parent
fd967fed89
commit
c43da3f183
2 changed files with 6 additions and 3 deletions
|
|
@ -22,6 +22,9 @@
|
|||
#include <miniupnpc/upnperrors.h>
|
||||
#endif
|
||||
|
||||
// Dump addresses to peers.dat every 15 minutes (900s)
|
||||
#define DUMP_ADDRESSES_INTERVAL 900
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
|
|
@ -1730,7 +1733,7 @@ void StartNode(boost::thread_group& threadGroup)
|
|||
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "msghand", &ThreadMessageHandler));
|
||||
|
||||
// Dump network addresses
|
||||
threadGroup.create_thread(boost::bind(&LoopForever<void (*)()>, "dumpaddr", &DumpAddresses, 10000));
|
||||
threadGroup.create_thread(boost::bind(&LoopForever<void (*)()>, "dumpaddr", &DumpAddresses, DUMP_ADDRESSES_INTERVAL * 1000));
|
||||
}
|
||||
|
||||
bool StopNode()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue