Skip to content

Commit

Permalink
Merge pull request #69 from DIG-Network/release/v0.0.1-alpha.74
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.74
  • Loading branch information
MichaelTaylor3D authored Sep 24, 2024
2 parents ead2a08 + 2d9438c commit e391a09
Show file tree
Hide file tree
Showing 9 changed files with 162 additions and 88 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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.74](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.73...v0.0.1-alpha.74) (2024-09-24)


### Features

* regen store createion height if its missing ([f6946a3](https://github.com/DIG-Network/dig-chia-sdk/commit/f6946a3f626e148142ffee88a8e12e76525d09cb))
* regen store createion height if its missing ([49c569b](https://github.com/DIG-Network/dig-chia-sdk/commit/49c569b28f79e3b9c0a8299b0b1e0bcfd5182be5))

### [0.0.1-alpha.73](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.72...v0.0.1-alpha.73) (2024-09-24)


Expand Down
114 changes: 74 additions & 40 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions 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.73",
"version": "0.0.1-alpha.74",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand All @@ -25,7 +25,7 @@
"LICENSE"
],
"dependencies": {
"@dignetwork/datalayer-driver": "^0.1.24",
"@dignetwork/datalayer-driver": "^0.1.25",
"archiver": "^7.0.1",
"axios": "^1.7.7",
"bip39": "^3.1.0",
Expand Down
8 changes: 3 additions & 5 deletions src/DigNetwork/DigNetwork.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import * as fs from "fs";
import * as path from "path";
import { MultiBar, Presets } from "cli-progress";
import { DigPeer } from "./DigPeer";
import { getFilePathFromSha256 } from "../utils/hashUtils";
import { DataStore, ServerCoin } from "../blockchain";
import { DIG_FOLDER_PATH } from "../utils/config";
import { RootHistoryItem } from "../types";
import { promisify } from "util";
import { DataIntegrityTree } from "../DataIntegrityTree";

const rename = promisify(fs.rename);
const unlink = promisify(fs.unlink);
Expand Down Expand Up @@ -146,9 +143,10 @@ export class DigNetwork {

if (!selectedPeer) {
console.error(
`No peer found with root hash ${rootInfo.root_hash}. Skipping download.`
`No peer found with root hash ${rootInfo.root_hash}. Abort download.`
);
break; // Exit loop if no more peers are found

throw new Error("No peer found with root hash.");
}

// Ensure the selected peer has the store by checking with a HEAD request
Expand Down
Loading

0 comments on commit e391a09

Please sign in to comment.