Merge pull request #317 from bguillaumat/add-cache-dir

Add Dockerization of Mempool v2 for Umbrel App Store
This commit is contained in:
wiz
2021-02-03 03:21:22 +09:00
committed by GitHub
16 changed files with 457 additions and 4 deletions

View File

@@ -4,10 +4,11 @@ import * as cluster from 'cluster';
import memPool from './mempool';
import blocks from './blocks';
import logger from '../logger';
import config from '../config';
class DiskCache {
private static FILE_NAME = './cache.json';
private static FILE_NAMES = './cache{number}.json';
private static FILE_NAME = config.MEMPOOL.CACHE_DIR + 'cache.json';
private static FILE_NAMES = config.MEMPOOL.CACHE_DIR + 'cache{number}.json';
private static CHUNK_SIZE = 10000;
constructor() { }