diff --git a/CHANGELOG.md b/CHANGELOG.md index 742d31b..8d54bdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ 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.122](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.121...v0.0.1-alpha.122) (2024-10-06) + + +### Features + +* support hostnames in server coins ([1700cde](https://github.com/DIG-Network/dig-propagation-server/commit/1700cde62deb4268f45ca537bbf19f62976059f1)) + +### [0.0.1-alpha.121](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.120...v0.0.1-alpha.121) (2024-10-06) + + +### Features + +* support hostnames in server coins ([92583f3](https://github.com/DIG-Network/dig-propagation-server/commit/92583f3054e03d5991a11a2c2dacec5166945d50)) + ### [0.0.1-alpha.120](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.119...v0.0.1-alpha.120) (2024-10-06) diff --git a/package-lock.json b/package-lock.json index 5265f0f..3f7e554 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.120", + "version": "0.0.1-alpha.122", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-propagation-server", - "version": "0.0.1-alpha.120", + "version": "0.0.1-alpha.122", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", diff --git a/package.json b/package.json index f3a4101..c2b4f13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.120", + "version": "0.0.1-alpha.122", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/controllers/storeController.ts b/src/controllers/storeController.ts index 6ff9bfe..34c32ba 100644 --- a/src/controllers/storeController.ts +++ b/src/controllers/storeController.ts @@ -40,7 +40,7 @@ export const subscribeToStore = async ( const nconfManager = new NconfManager("config.json"); const publicIp: string | null | undefined = - await nconfManager.getConfigValue("publicIp"); + await nconfManager.getConfigValue("publicHost"); if (publicIp) { const serverCoin = new ServerCoin(storeId); diff --git a/src/tasks/sync_stores.ts b/src/tasks/sync_stores.ts index 802e881..42192d4 100644 --- a/src/tasks/sync_stores.ts +++ b/src/tasks/sync_stores.ts @@ -18,7 +18,7 @@ const STORE_PATH = path.join(getStorageLocation(), "stores"); const mutex = new Mutex(); -const PUBLIC_IP_KEY = "publicIp"; +const PUBLIC_IP_KEY = "publicHost"; const nconfManager = new NconfManager("config.json"); // Map to track which peerIps have been checked for each rootHash