Re-added missing cache version

This commit is contained in:
nymkappa 2022-06-03 17:04:52 +02:00
parent 95dd436be5
commit 3bc55d80ce
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -41,6 +41,7 @@ class DiskCache {
const chunkSize = Math.floor(mempoolArray.length / DiskCache.CHUNK_FILES);
await fsPromises.writeFile(DiskCache.FILE_NAME, JSON.stringify({
cacheSchemaVersion: this.cacheSchemaVersion,
blocks: blocks.getBlocks(),
mempool: {},
mempoolArray: mempoolArray.splice(0, chunkSize),