Only dump zindex.dat if -zindex is enabled
This commit is contained in:
@@ -2010,8 +2010,10 @@ void StartNode(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
// Dump network addresses
|
// Dump network addresses
|
||||||
scheduler.scheduleEvery(&DumpAddresses, DUMP_ADDRESSES_INTERVAL);
|
scheduler.scheduleEvery(&DumpAddresses, DUMP_ADDRESSES_INTERVAL);
|
||||||
|
|
||||||
// Dump zindex stats
|
// Dump zindex stats if -zindex is enabled
|
||||||
scheduler.scheduleEvery(&DumpZindexStats, DUMP_ZINDEX_INTERVAL);
|
if (fZindex) {
|
||||||
|
scheduler.scheduleEvery(&DumpZindexStats, DUMP_ZINDEX_INTERVAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StopNode()
|
bool StopNode()
|
||||||
|
|||||||
Reference in New Issue
Block a user