Skip to content

Commit

Permalink
chore(core-p2p): allow 2.4 and 2.5 nodes (#2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian authored Jun 18, 2019
1 parent c780f66 commit 5c03914
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion __tests__/unit/core-p2p/utils/is-valid-version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe("isValidVersion", () => {
expect(isValidVersion({ ...peerMock, ...{ version: "2.8.0" } })).toBeTrue();
expect(isValidVersion({ ...peerMock, ...{ version: "2.9.0" } })).toBeTrue();
expect(isValidVersion({ ...peerMock, ...{ version: "2.9.934" } })).toBeTrue();
expect(isValidVersion({ ...peerMock, ...{ version: "3.0.0" } })).toBeTrue();
});

it("should be an invalid version", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core-p2p/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const defaults = {
/**
* The minimum peer version we expect
*/
minimumVersions: [">=2.4.0", ">=2.4.0-next.0"],
minimumVersions: ["^2.4 || ^2.5"],
/**
* The number of peers we expect to be available to start a relay
*/
Expand Down

0 comments on commit 5c03914

Please sign in to comment.