diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c357cc..b0d298c 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.113](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.112...v0.0.1-alpha.113) (2024-10-03) + + +### Bug Fixes + +* double spend error ([c6201a7](https://github.com/DIG-Network/dig-chia-sdk/commit/c6201a74a6a73850900dbce5870568d48b729473)) + ### [0.0.1-alpha.112](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.111...v0.0.1-alpha.112) (2024-10-03) diff --git a/package-lock.json b/package-lock.json index 211bc63..a3f2d2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.112", + "version": "0.0.1-alpha.113", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.112", + "version": "0.0.1-alpha.113", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index ffff611..2053779 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.112", + "version": "0.0.1-alpha.113", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/blockchain/StoreInfoCacheUpdater.ts b/src/blockchain/StoreInfoCacheUpdater.ts index f763b06..b551dcd 100644 --- a/src/blockchain/StoreInfoCacheUpdater.ts +++ b/src/blockchain/StoreInfoCacheUpdater.ts @@ -129,6 +129,8 @@ export class StoreInfoCacheUpdater { // Get the coinId associated with the store const coinId = getCoinId(latestStore.coin); + console.log(`Waiting for coin to be spent: ${coinId.toString("hex")}`); + // Wait for the coin to be spent await peer.waitForCoinToBeSpent( coinId, @@ -136,6 +138,8 @@ export class StoreInfoCacheUpdater { Buffer.from(latestHash, "hex") ); + console.log(`Detected Coin Spend: ${coinId.toString("hex")}`); + let updatedStore, newHeight; try {