From 386ceb8253c0a26729c93c765c4670271633b51c Mon Sep 17 00:00:00 2001 From: pingpongsneak Date: Sun, 7 Aug 2022 22:00:40 +0100 Subject: [PATCH 1/3] fix: missing address protocol format --- node/Configuration/Configuration.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/node/Configuration/Configuration.cs b/node/Configuration/Configuration.cs index bcec75f8..ab677f43 100644 --- a/node/Configuration/Configuration.cs +++ b/node/Configuration/Configuration.cs @@ -29,12 +29,9 @@ public Configuration(IUserInterface userInterface) var configTemplate = File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configuration", "Templates", Program.AppSettingsFile)); var config = configTemplate - .Replace("", - $"http://{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.ApiPortPublic.ToString()}") - .Replace("", - $"{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.ListeningPort.ToString()}") - .Replace("", - $"{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.AdvertisePort.ToString()}") + .Replace("", $"http://{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.ApiPortPublic.ToString()}") + .Replace("", $"tcp://{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.ListeningPort.ToString()}") + .Replace("", $"tcp://{networkConfiguration.Configuration.IpAddress}:{networkConfiguration.Configuration.AdvertisePort.ToString()}") .Replace("", networkConfiguration.Configuration.NodeName); var configFileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Program.AppSettingsFile); File.WriteAllText(configFileName, config); From 858a0a3cb3a479c3e9671c159d6dbbde19504474 Mon Sep 17 00:00:00 2001 From: pingpongsneak Date: Sun, 7 Aug 2022 22:01:41 +0100 Subject: [PATCH 2/3] build: bump version --- core/core.csproj | 2 +- node/node.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.csproj b/core/core.csproj index d32ee1d7..499a4ec9 100644 --- a/core/core.csproj +++ b/core/core.csproj @@ -4,7 +4,7 @@ net6.0 AnyCPU;x64 CypherNetwork - 0.0.64.0 + 0.0.65.0 CypherNetwork core cyphernetworkcore diff --git a/node/node.csproj b/node/node.csproj index abf11bca..f64a9928 100644 --- a/node/node.csproj +++ b/node/node.csproj @@ -2,7 +2,7 @@ true - 0.0.64.0 + 0.0.65.0 en node From 582b131b3187e1ee7acfae6d954421faa374bfb8 Mon Sep 17 00:00:00 2001 From: pingpongsneak Date: Sun, 7 Aug 2022 22:09:51 +0100 Subject: [PATCH 3/3] fix: error description --- core/Controllers/BlockController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Controllers/BlockController.cs b/core/Controllers/BlockController.cs index 54f5a263..926ba9fa 100644 --- a/core/Controllers/BlockController.cs +++ b/core/Controllers/BlockController.cs @@ -44,7 +44,7 @@ public async Task GetBlockAsync(string hash) } catch (Exception ex) { - _logger.Here().Error(ex, "Unable to get the block height"); + _logger.Here().Error(ex, "Unable to get the block"); } return NotFound();