Skip to content

Commit

Permalink
Merge pull request #151 from DIG-Network/release/v0.0.1-alpha.167
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.167
  • Loading branch information
MichaelTaylor3D authored Oct 8, 2024
2 parents f1add00 + 4306e42 commit 5583db6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 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.167](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.166...v0.0.1-alpha.167) (2024-10-08)


### Bug Fixes

* wait for confirmation ([291a90d](https://github.com/DIG-Network/dig-chia-sdk/commit/291a90d065fd55d5041100ee75f1f5b580bf4467))

### [0.0.1-alpha.166](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.165...v0.0.1-alpha.166) (2024-10-08)


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.166",
"version": "0.0.1-alpha.167",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
17 changes: 7 additions & 10 deletions src/blockchain/FullNodePeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,17 +518,14 @@ export class FullNodePeer {
const peer = await FullNodePeer.connect();

try {
while (true) {
// Schedule the isCoinSpent method call through the limiter

await peer.waitForCoinToBeSpent(
parentCoinInfo,
MIN_HEIGHT,
Buffer.from(MIN_HEIGHT_HEADER_HASH, "hex")
);
await peer.waitForCoinToBeSpent(
parentCoinInfo,
MIN_HEIGHT,
Buffer.from(MIN_HEIGHT_HEADER_HASH, "hex")
);

spinner.success({ text: "Coin confirmed!" });
}
spinner.success({ text: "Coin confirmed!" });
return true;
} catch (error: any) {
spinner.error({ text: "Error while waiting for confirmation." });
console.error(`waitForConfirmation error: ${error.message}`);
Expand Down

0 comments on commit 5583db6

Please sign in to comment.