Skip to content

Commit

Permalink
fix: adm node minVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDremanovich committed Feb 29, 2024
1 parent da8359c commit a8eef25
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"onScreenUpdateInterval": 10000,
"threshold": 10
},
"minVersion": "0.8.0"
"minVersion": "v0.8.0"
},
"services": {
"list": {
Expand Down Expand Up @@ -218,4 +218,4 @@
"explorer": "https://liskscan.com",
"explorerAddress": "https://liskscan.com/account/${ID}"
}
}
}
4 changes: 2 additions & 2 deletions src/config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"onScreenUpdateInterval": 10000,
"threshold": 10
},
"minVersion": "0.8.0"
"minVersion": "v0.8.0"
},
"services": {
"list": {
Expand Down Expand Up @@ -218,4 +218,4 @@
"explorer": "https://liskscan.com",
"explorerAddress": "https://liskscan.com/account/${ID}"
}
}
}
2 changes: 1 addition & 1 deletion src/config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"onScreenUpdateInterval": 10000,
"threshold": 10
},
"minVersion": "0.8.0"
"minVersion": "v0.8.0"
},
"services": {
"list": {
Expand Down
4 changes: 2 additions & 2 deletions src/config/tor.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"onScreenUpdateInterval": 10000,
"threshold": 10
},
"minVersion": "0.8.0"
"minVersion": "v0.8.0"
},
"services": {
"list": {
Expand Down Expand Up @@ -178,4 +178,4 @@
"explorer": "https://liskscan.com",
"explorerAddress": "https://liskscan.com/account/${ID}"
}
}
}
2 changes: 1 addition & 1 deletion src/lib/nodes/abstract.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export abstract class Node<C = unknown> {
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
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/nodes/adm/AdmNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:'
Expand Down

0 comments on commit a8eef25

Please sign in to comment.