Removing Sigterm. Cache write block interval configuration.

This commit is contained in:
softsimon
2023-03-20 15:23:02 +09:00
parent d54bcc898b
commit 517cf613c1
14 changed files with 26 additions and 15 deletions

View File

@@ -651,7 +651,7 @@ class Blocks {
if (this.newBlockCallbacks.length) {
this.newBlockCallbacks.forEach((cb) => cb(blockExtended, txIds, transactions));
}
if (!memPool.hasPriority() && (block.height % 6 === 0)) {
if (!memPool.hasPriority() && (block.height % config.MEMPOOL.DISK_CACHE_BLOCK_INTERVAL === 0)) {
diskCache.$saveCacheToDisk();
}