Skip to content

Commit

Permalink
Merge pull request #105 from DIG-Network/release/v0.0.1-alpha.115
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.115
  • Loading branch information
MichaelTaylor3D authored Oct 3, 2024
2 parents ebfad4f + b718471 commit 210d6bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.115](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.114...v0.0.1-alpha.115) (2024-10-03)

### [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)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dignetwork/dig-sdk",
"version": "0.0.1-alpha.114",
"version": "0.0.1-alpha.115",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
10 changes: 5 additions & 5 deletions src/blockchain/StoreInfoCacheUpdater.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs";
import { FullNodePeer } from "./FullNodePeer";
import { FileCache, USER_DIR_PATH, DIG_FOLDER_PATH } from "../utils";
import { FileCache, USER_DIR_PATH } from "../utils";
import { DataStoreSerializer } from "./DataStoreSerializer";
import { withTimeout } from "../utils";
import * as lockfile from "proper-lockfile";
Expand All @@ -27,11 +27,11 @@ export class StoreInfoCacheUpdater {
this.storeCoinCache = new FileCache(`stores`, USER_DIR_PATH);

// Construct lock file path using the path module
this.lockFilePath = path.join(DIG_FOLDER_PATH, "store-info-cache.lock");
this.lockFilePath = path.join(USER_DIR_PATH, "store-info-cache.lock");

if (fs.existsSync(this.lockFilePath)) {
console.log("Removing existing lock file");
fs.unlinkSync(this.lockFilePath);
const lockDir = path.dirname(this.lockFilePath);
if (!fs.existsSync(lockDir)) {
fs.mkdirSync(lockDir, { recursive: true });
}

// Start monitors for existing storeIds
Expand Down

0 comments on commit 210d6bc

Please sign in to comment.