mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
Save cache to disk every 6 blocks
This commit is contained in:
parent
7e676dbaf0
commit
8bd05987e5
@ -641,7 +641,7 @@ class Blocks {
|
||||
if (this.newBlockCallbacks.length) {
|
||||
this.newBlockCallbacks.forEach((cb) => cb(blockExtended, txIds, transactions));
|
||||
}
|
||||
if (!memPool.hasPriority()) {
|
||||
if (!memPool.hasPriority() && (block.height % 6 === 0)) {
|
||||
diskCache.$saveCacheToDisk();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user