Only dump zindex.dat if -zindex is enabled

This commit is contained in:
Duke Leto
2021-06-18 11:41:47 -04:00
parent b03ed9d9d2
commit 21cca9ec29

View File

@@ -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()