From 2f90a96435255b6f08c6d0969c07a6018bdc5c2d Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Tue, 20 Apr 2021 23:35:26 +0300 Subject: [PATCH] refactoring: remove a check for 5.0.0-rc1 --- src/node.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/node.js b/src/node.js index dcd6db0ab2..be33a7ab8e 100644 --- a/src/node.js +++ b/src/node.js @@ -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( @@ -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