Save cache to disk every 6 blocks
This commit is contained in:
parent
b364f5b8fe
commit
0e1b4fbd1f
@ -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…
x
Reference in New Issue
Block a user