diff --git a/CHANGELOG.md b/CHANGELOG.md index ef5ca40..3d8ac73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ 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.87](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.86...v0.0.1-alpha.87) (2024-09-25) + + +### Bug Fixes + +* integrity check when downloading files ([f6deefd](https://github.com/DIG-Network/dig-chia-sdk/commit/f6deefda9d64d4e255a8bc4a378ae57391f904db)) + ### [0.0.1-alpha.86](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.85...v0.0.1-alpha.86) (2024-09-25) diff --git a/package-lock.json b/package-lock.json index 0c50801..453a131 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.25", diff --git a/package.json b/package.json index ab1962c..c0a8925 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.86", + "version": "0.0.1-alpha.87", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/DigNetwork/PropagationServer.ts b/src/DigNetwork/PropagationServer.ts index a7273f8..06135aa 100644 --- a/src/DigNetwork/PropagationServer.ts +++ b/src/DigNetwork/PropagationServer.ts @@ -698,9 +698,11 @@ export class PropagationServer { ); if (!fs.existsSync(path.join(tempDir, dataPath))) { - throw new Error( - `Missing file: ${Buffer.from(fileKey, "hex")}, aborting session.` - ); + if (!fs.existsSync(path.join(STORE_PATH, storeId, dataPath))) { + throw new Error( + `Missing file: ${Buffer.from(fileKey, "hex")}, aborting session.` + ); + } } }