Skip to content

Commit

Permalink
refactoring: remove a check for 5.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 28, 2021
1 parent 35d5c11 commit 2f90a96
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ const Node = AsyncInit.compose({
const { nodeRevision: revision, genesisKeyBlockHash: genesisHash, networkId, protocols } = await this.api.getStatus()
this.consensusProtocolVersion = await this.getConsensusProtocolVersion(protocols)
if (
(
!semverSatisfies(this.version, NODE_GE_VERSION, NODE_LT_VERSION) ||
this.version === '5.0.0-rc1'
) &&
// Todo implement 'rc' version comparision in semverSatisfies
!semverSatisfies(this.version, NODE_GE_VERSION, NODE_LT_VERSION) &&
!forceCompatibility
) {
throw new Error(
Expand All @@ -121,7 +117,7 @@ const Node = AsyncInit.compose({
}
})

const NODE_GE_VERSION = '5.0.0'
const NODE_GE_VERSION = '5.0.1'
const NODE_LT_VERSION = '6.0.0'

export default Node

0 comments on commit 2f90a96

Please sign in to comment.