From da39ad8cd12e183dcd35bbce54ab1a64cb716e6b Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 3 Oct 2024 16:14:30 -0400 Subject: [PATCH 1/2] chore: update sdk --- src/blockchain/StoreInfoCacheUpdater.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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(); } From 8688a3e4f7bad8f2c0350e8df619bca3003ef31b Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 3 Oct 2024 16:14:48 -0400 Subject: [PATCH 2/2] chore(release): 0.0.1-alpha.114 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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",