Skip to content

Commit

Permalink
Merge pull request #31 from DIG-Network/release/v0.0.1-alpha.33
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.33
  • Loading branch information
MichaelTaylor3D authored Sep 19, 2024
2 parents b886342 + d7e6d4e commit d30681c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 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.33](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.32...v0.0.1-alpha.33) (2024-09-19)


### Bug Fixes

* hasRootHash query param ([81d2b4f](https://github.com/DIG-Network/dig-chia-sdk/commit/81d2b4f5f1472bbabb12dd171998f3841b3b5065))

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


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.32",
"version": "0.0.1-alpha.33",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/DigNetwork/ContentServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class ContentServer {
let url = `https://${this.ipAddress}/${this.storeId}`;

if (options?.hasRootHash) {
url += `hasRootHash=${options.hasRootHash}`;
url += `?hasRootHash=${options.hasRootHash}`;
}

return this.head(url); // Return the object from head method
Expand Down
2 changes: 2 additions & 0 deletions src/DigNetwork/DigNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ export class DigNetwork {
hasRootHash: rootHash,
});

console.log(peerIp, storeResponse.headers);

if (
storeResponse.success &&
storeResponse.headers?.["x-has-rootHash"] === "true"
Expand Down

0 comments on commit d30681c

Please sign in to comment.