Re-added missing cache version

This commit is contained in:
nymkappa 2022-06-03 17:04:52 +02:00
parent e26db2d171
commit aa1281bda6

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),