diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 5f4733956..bee53db9c 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -116,7 +116,9 @@ class Blocks { if (this.newBlockCallbacks.length) { this.newBlockCallbacks.forEach((cb) => cb(blockExtended, txIds, transactions)); } - diskCache.$saveCacheToDisk(); + if (memPool.isInSync()) { + diskCache.$saveCacheToDisk(); + } } }