diff options
| author | Jeff Garzik <[email protected]> | 2013-06-24 07:32:20 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-06-24 07:32:20 -0700 |
| commit | 396485b14dd60d92c980b1b6257e5ef8c7955167 (patch) | |
| tree | 9aecd68d4451155b566777da4697b118d334d8e9 /src/net.cpp | |
| parent | Merge pull request #2771 from super3/master (diff) | |
| parent | Dump addresses every 15 minutes instead of 10 seconds (diff) | |
| download | discoin-396485b14dd60d92c980b1b6257e5ef8c7955167.tar.xz discoin-396485b14dd60d92c980b1b6257e5ef8c7955167.zip | |
Merge pull request #2789 from sipa/overdump
Dump addresses every 15 minutes instead of 10 seconds
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index 0adf26ef0..5418c3de4 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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() |