diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d298c..4da687f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.114](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.113...v0.0.1-alpha.114) (2024-10-03) + ### [0.0.1-alpha.113](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.112...v0.0.1-alpha.113) (2024-10-03) diff --git a/package-lock.json b/package-lock.json index a3f2d2d..c064a45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.113", + "version": "0.0.1-alpha.114", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.113", + "version": "0.0.1-alpha.114", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index 2053779..5130672 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.113", + "version": "0.0.1-alpha.114", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/blockchain/StoreInfoCacheUpdater.ts b/src/blockchain/StoreInfoCacheUpdater.ts index b551dcd..6b1afca 100644 --- a/src/blockchain/StoreInfoCacheUpdater.ts +++ b/src/blockchain/StoreInfoCacheUpdater.ts @@ -1,3 +1,4 @@ +import fs from "fs"; import { FullNodePeer } from "./FullNodePeer"; import { FileCache, USER_DIR_PATH, DIG_FOLDER_PATH } from "../utils"; import { DataStoreSerializer } from "./DataStoreSerializer"; @@ -28,6 +29,11 @@ export class StoreInfoCacheUpdater { // Construct lock file path using the path module this.lockFilePath = path.join(DIG_FOLDER_PATH, "store-info-cache.lock"); + if (fs.existsSync(this.lockFilePath)) { + console.log("Removing existing lock file"); + fs.unlinkSync(this.lockFilePath); + } + // Start monitors for existing storeIds this.startMonitors(); }