Skip to content

Commit

Permalink
Merge pull request #103 from DIG-Network/release/v0.0.1-alpha.113
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.113
  • Loading branch information
MichaelTaylor3D authored Oct 3, 2024
2 parents 5f9af72 + 54984e3 commit eaff458
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


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.112",
"version": "0.0.1-alpha.113",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
4 changes: 4 additions & 0 deletions src/blockchain/StoreInfoCacheUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,17 @@ 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,
latestHeight,
Buffer.from(latestHash, "hex")
);

console.log(`Detected Coin Spend: ${coinId.toString("hex")}`);

let updatedStore, newHeight;

try {
Expand Down

0 comments on commit eaff458

Please sign in to comment.