From a8eef25b908df0081644444e7edc08c7eb44fd9f Mon Sep 17 00:00:00 2001 From: PaulDremanovich Date: Thu, 29 Feb 2024 12:18:32 +0400 Subject: [PATCH] fix: adm node minVersion --- src/config/development.json | 4 ++-- src/config/production.json | 4 ++-- src/config/test.json | 2 +- src/config/tor.json | 4 ++-- src/lib/nodes/abstract.node.ts | 2 +- src/lib/nodes/adm/AdmNode.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/config/development.json b/src/config/development.json index 20d6a7cd1..4faa5bbde 100644 --- a/src/config/development.json +++ b/src/config/development.json @@ -49,7 +49,7 @@ "onScreenUpdateInterval": 10000, "threshold": 10 }, - "minVersion": "0.8.0" + "minVersion": "v0.8.0" }, "services": { "list": { @@ -218,4 +218,4 @@ "explorer": "https://liskscan.com", "explorerAddress": "https://liskscan.com/account/${ID}" } -} \ No newline at end of file +} diff --git a/src/config/production.json b/src/config/production.json index 4bfc5631a..89880919c 100644 --- a/src/config/production.json +++ b/src/config/production.json @@ -48,7 +48,7 @@ "onScreenUpdateInterval": 10000, "threshold": 10 }, - "minVersion": "0.8.0" + "minVersion": "v0.8.0" }, "services": { "list": { @@ -218,4 +218,4 @@ "explorer": "https://liskscan.com", "explorerAddress": "https://liskscan.com/account/${ID}" } -} \ No newline at end of file +} diff --git a/src/config/test.json b/src/config/test.json index d880b162f..4faa5bbde 100644 --- a/src/config/test.json +++ b/src/config/test.json @@ -49,7 +49,7 @@ "onScreenUpdateInterval": 10000, "threshold": 10 }, - "minVersion": "0.8.0" + "minVersion": "v0.8.0" }, "services": { "list": { diff --git a/src/config/tor.json b/src/config/tor.json index 4d456b4ac..cec33bdb6 100644 --- a/src/config/tor.json +++ b/src/config/tor.json @@ -24,7 +24,7 @@ "onScreenUpdateInterval": 10000, "threshold": 10 }, - "minVersion": "0.8.0" + "minVersion": "v0.8.0" }, "services": { "list": { @@ -178,4 +178,4 @@ "explorer": "https://liskscan.com", "explorerAddress": "https://liskscan.com/account/${ID}" } -} \ No newline at end of file +} diff --git a/src/lib/nodes/abstract.node.ts b/src/lib/nodes/abstract.node.ts index 94401f836..337f3bcf0 100644 --- a/src/lib/nodes/abstract.node.ts +++ b/src/lib/nodes/abstract.node.ts @@ -204,7 +204,7 @@ export abstract class Node { if (!this.minNodeVersion) { return true } - + //TODO: If check the minimum version of Ethereum, you need to override the method and parse the client name in the version return this.version >= this.minNodeVersion } diff --git a/src/lib/nodes/adm/AdmNode.ts b/src/lib/nodes/adm/AdmNode.ts index 727146c87..23fd89c77 100644 --- a/src/lib/nodes/adm/AdmNode.ts +++ b/src/lib/nodes/adm/AdmNode.ts @@ -31,7 +31,7 @@ export class AdmNode extends Node { client: AxiosInstance constructor(url: string, minNodeVersion = '0.0.0') { - super(url, 'adm', 'node', NODE_LABELS.AdmNode, minNodeVersion, minNodeVersion) + super(url, 'adm', 'node', NODE_LABELS.AdmNode, '', minNodeVersion) this.wsPort = '36668' // default wsPort this.wsProtocol = this.protocol === 'https:' ? 'wss:' : 'ws:'