Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/6.0.1' into 9148-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 authored Nov 23, 2023
2 parents 8b66166 + 1e73f05 commit c448ee5
Show file tree
Hide file tree
Showing 32 changed files with 190 additions and 867 deletions.
683 changes: 0 additions & 683 deletions commander/oclif.manifest.json

This file was deleted.

22 changes: 11 additions & 11 deletions commander/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lisk-commander",
"version": "6.0.0-rc.6",
"version": "6.0.0",
"description": "A command line interface for Lisk",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -101,16 +101,16 @@
"/docs"
],
"dependencies": {
"@liskhq/lisk-api-client": "^6.0.0-rc.4",
"@liskhq/lisk-chain": "^0.5.0-rc.4",
"@liskhq/lisk-client": "^6.0.0-rc.4",
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-api-client": "^6.0.0",
"@liskhq/lisk-chain": "^0.5.0",
"@liskhq/lisk-client": "^6.0.0",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-db": "0.3.10",
"@liskhq/lisk-passphrase": "^4.0.0-rc.0",
"@liskhq/lisk-transactions": "^6.0.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-validator": "^0.8.0-rc.2",
"@liskhq/lisk-passphrase": "^4.0.0",
"@liskhq/lisk-transactions": "^6.0.0",
"@liskhq/lisk-utils": "^0.4.0",
"@liskhq/lisk-validator": "^0.8.0",
"@oclif/core": "1.20.4",
"@oclif/plugin-autocomplete": "1.3.6",
"@oclif/plugin-help": "5.1.19",
Expand All @@ -121,7 +121,7 @@
"cli-table3": "0.6.0",
"fs-extra": "11.1.0",
"inquirer": "8.2.5",
"lisk-framework": "^0.11.0-rc.5",
"lisk-framework": "^0.11.0",
"listr": "0.14.3",
"progress": "2.0.3",
"semver": "7.5.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@
}
},
"dependencies": {
"@liskhq/lisk-framework-dashboard-plugin": "0.3.0-rc.5",
"@liskhq/lisk-framework-faucet-plugin": "0.3.0-rc.5",
"@liskhq/lisk-framework-monitor-plugin": "0.4.0-rc.5",
"@liskhq/lisk-framework-forger-plugin": "0.4.0-rc.5",
"@liskhq/lisk-framework-report-misbehavior-plugin": "0.4.0-rc.5",
"@liskhq/lisk-framework-chain-connector-plugin": "0.1.0-rc.5",
"@liskhq/lisk-framework-dashboard-plugin": "0.3.0",
"@liskhq/lisk-framework-faucet-plugin": "0.3.0",
"@liskhq/lisk-framework-monitor-plugin": "0.4.0",
"@liskhq/lisk-framework-forger-plugin": "0.4.0",
"@liskhq/lisk-framework-report-misbehavior-plugin": "0.4.0",
"@liskhq/lisk-framework-chain-connector-plugin": "0.1.0",
"@oclif/core": "1.20.4",
"@oclif/plugin-autocomplete": "1.3.6",
"@oclif/plugin-help": "5.1.19",
"@oclif/plugin-version": "1.1.3",
"axios": "0.21.2",
"fs-extra": "11.1.0",
"inquirer": "8.2.5",
"lisk-commander": "6.0.0-rc.6",
"lisk-sdk": "6.0.0-rc.5",
"lisk-commander": "6.0.0",
"lisk-sdk": "6.0.0",
"tar": "6.1.11",
"tslib": "2.4.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"lisk-sdk": "^6.0.0-rc.5"
"lisk-sdk": "^6.0.0"
},
"devDependencies": {
"@types/jest": "26.0.21",
Expand Down
12 changes: 6 additions & 6 deletions elements/lisk-api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-api-client",
"version": "6.0.0-rc.4",
"version": "6.0.0",
"description": "An API client for the Lisk network",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,16 +35,16 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-transactions": "^6.0.0-rc.2",
"@liskhq/lisk-validator": "^0.8.0-rc.2",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-transactions": "^6.0.0",
"@liskhq/lisk-validator": "^0.8.0",
"isomorphic-ws": "4.0.1",
"ws": "8.11.0",
"zeromq": "6.0.0-beta.6"
},
"devDependencies": {
"@liskhq/lisk-chain": "^0.5.0-rc.4",
"@liskhq/lisk-chain": "^0.5.0",
"@types/jest": "29.2.3",
"@types/jest-when": "3.5.2",
"@types/node": "18.15.3",
Expand Down
4 changes: 2 additions & 2 deletions elements/lisk-api-client/src/ws_channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { EventEmitter } from 'events';
import { JSONRPCMessage, EventCallback, Defer } from './types';
import { convertRPCError, defer, messageIsNotification, promiseWithTimeout } from './utils';

const CONNECTION_TIMEOUT = 2000;
const RESPONSE_TIMEOUT = 3000;
export const CONNECTION_TIMEOUT = 5000;
export const RESPONSE_TIMEOUT = 10000;

export class WSChannel {
public isAlive = false;
Expand Down
52 changes: 29 additions & 23 deletions elements/lisk-api-client/test/integration/ws_channel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import { createServer, Server } from 'http';
import * as WebSocket from 'isomorphic-ws';
import { Socket } from 'net';
import { WSChannel } from '../../src/ws_channel';
import { WSChannel, CONNECTION_TIMEOUT, RESPONSE_TIMEOUT } from '../../src/ws_channel';

jest.unmock('isomorphic-ws');

Expand Down Expand Up @@ -58,32 +58,38 @@ describe('WSChannel', () => {
expect.assertions(3);
});

it('should timeout if ws server not responding', async () => {
const http = createServer();
const server = new WebSocket.Server({ path: '/my-path', noServer: true });
it(
'should timeout if ws server not responding',
async () => {
const http = createServer();
const server = new WebSocket.Server({ path: '/my-path', noServer: true });

// https://github.com/websockets/ws/issues/377#issuecomment-462152231
http.on('upgrade', (request, socket, head) => {
setTimeout(() => {
server.handleUpgrade(request, socket as Socket, head, ws => {
server.emit('connection', ws, request);
});
}, 3000);
});
// https://github.com/websockets/ws/issues/377#issuecomment-462152231
http.on('upgrade', (request, socket, head) => {
setTimeout(() => {
server.handleUpgrade(request, socket as Socket, head, ws => {
server.emit('connection', ws, request);
});
}, CONNECTION_TIMEOUT + 1000);
});

http.listen(65535);
http.listen(65535);

const channel = new WSChannel('ws://127.0.0.1:65535/my-path');
const channel = new WSChannel('ws://127.0.0.1:65535/my-path');

try {
await expect(channel.connect()).rejects.toThrow('Could not connect in 2000ms');
expect(server.clients.size).toBe(0);
} finally {
await closeServer(http);
await closeServer(server);
}
expect.assertions(2);
}, 5000);
try {
await expect(channel.connect()).rejects.toThrow(
`Could not connect in ${CONNECTION_TIMEOUT}ms`,
);
expect(server.clients.size).toBe(0);
} finally {
await closeServer(http);
await closeServer(server);
}
expect.assertions(2);
},
RESPONSE_TIMEOUT,
);

it('should throw error if server is not running', async () => {
const channel = new WSChannel('ws://127.0.0.1:65534/my-path');
Expand Down
14 changes: 7 additions & 7 deletions elements/lisk-chain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-chain",
"version": "0.5.0-rc.4",
"version": "0.5.0",
"description": "Blocks and state management implementation that are used for block processing according to the Lisk protocol",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,16 +35,16 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-db": "0.3.10",
"@liskhq/lisk-tree": "^0.4.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-validator": "^0.8.0-rc.2",
"@liskhq/lisk-tree": "^0.4.0",
"@liskhq/lisk-utils": "^0.4.0",
"@liskhq/lisk-validator": "^0.8.0",
"debug": "4.3.4"
},
"devDependencies": {
"@liskhq/lisk-passphrase": "^4.0.0-rc.0",
"@liskhq/lisk-passphrase": "^4.0.0",
"@types/debug": "4.1.5",
"@types/faker": "4.1.10",
"@types/jest": "29.2.3",
Expand Down
18 changes: 9 additions & 9 deletions elements/lisk-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-client",
"version": "6.0.0-rc.4",
"version": "6.0.0",
"description": "A default set of Elements for use by clients of the Lisk network",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -56,14 +56,14 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-api-client": "^6.0.0-rc.4",
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-passphrase": "^4.0.0-rc.0",
"@liskhq/lisk-transactions": "^6.0.0-rc.2",
"@liskhq/lisk-tree": "^0.4.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-validator": "^0.8.0-rc.2",
"@liskhq/lisk-api-client": "^6.0.0",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-passphrase": "^4.0.0",
"@liskhq/lisk-transactions": "^6.0.0",
"@liskhq/lisk-tree": "^0.4.0",
"@liskhq/lisk-utils": "^0.4.0",
"@liskhq/lisk-validator": "^0.8.0",
"buffer": "6.0.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions elements/lisk-codec/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-codec",
"version": "0.4.0-rc.2",
"version": "0.4.0",
"description": "Implementation of decoder and encoder using Lisk JSON schema according to the Lisk protocol",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,9 +35,9 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-validator": "^0.8.0-rc.2"
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-utils": "^0.4.0",
"@liskhq/lisk-validator": "^0.8.0"
},
"devDependencies": {
"@types/jest": "29.2.3",
Expand Down
4 changes: 2 additions & 2 deletions elements/lisk-cryptography/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-cryptography",
"version": "4.0.0-rc.2",
"version": "4.0.0",
"description": "General cryptographic functions for use with Lisk-related software",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,7 +35,7 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-passphrase": "^4.0.0-rc.0",
"@liskhq/lisk-passphrase": "^4.0.0",
"buffer-reverse": "1.0.1",
"hash-wasm": "4.9.0",
"tweetnacl": "1.0.3"
Expand Down
24 changes: 12 additions & 12 deletions elements/lisk-elements/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lisk-elements",
"version": "6.0.0-rc.4",
"version": "6.0.0",
"description": "Elements for building blockchain applications in the Lisk network",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,18 +35,18 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-api-client": "^6.0.0-rc.4",
"@liskhq/lisk-chain": "^0.5.0-rc.4",
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-api-client": "^6.0.0",
"@liskhq/lisk-chain": "^0.5.0",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-db": "0.3.10",
"@liskhq/lisk-p2p": "^0.9.0-rc.2",
"@liskhq/lisk-passphrase": "^4.0.0-rc.0",
"@liskhq/lisk-transaction-pool": "^0.7.0-rc.2",
"@liskhq/lisk-transactions": "^6.0.0-rc.2",
"@liskhq/lisk-tree": "^0.4.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-validator": "^0.8.0-rc.2"
"@liskhq/lisk-p2p": "^0.9.0",
"@liskhq/lisk-passphrase": "^4.0.0",
"@liskhq/lisk-transaction-pool": "^0.7.0",
"@liskhq/lisk-transactions": "^6.0.0",
"@liskhq/lisk-tree": "^0.4.0",
"@liskhq/lisk-utils": "^0.4.0",
"@liskhq/lisk-validator": "^0.8.0"
},
"devDependencies": {
"@types/jest": "29.2.3",
Expand Down
8 changes: 4 additions & 4 deletions elements/lisk-p2p/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-p2p",
"version": "0.9.0-rc.2",
"version": "0.9.0",
"description": "Unstructured P2P library for use with Lisk-related software",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -41,9 +41,9 @@
"disableLocalIPs": "./scripts/disableTestLocalIPs.sh 2 19"
},
"dependencies": {
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-validator": "^0.8.0-rc.2",
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-validator": "^0.8.0",
"lodash.shuffle": "4.2.0",
"semver": "7.5.2",
"socketcluster-client": "14.3.1",
Expand Down
2 changes: 1 addition & 1 deletion elements/lisk-passphrase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-passphrase",
"version": "4.0.0-rc.0",
"version": "4.0.0",
"description": "Mnemonic passphrase helpers for use with Lisk-related software",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions elements/lisk-transaction-pool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-transaction-pool",
"version": "0.7.0-rc.2",
"version": "0.7.0",
"description": "Transaction pool library for use with Lisk-related software",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -36,8 +36,8 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-utils": "^0.4.0-rc.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-utils": "^0.4.0",
"debug": "4.3.4"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions elements/lisk-transactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liskhq/lisk-transactions",
"version": "6.0.0-rc.2",
"version": "6.0.0",
"description": "Utility functions related to transactions according to the Lisk protocol",
"author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -35,9 +35,9 @@
"build:check": "node -e \"require('./dist-node')\""
},
"dependencies": {
"@liskhq/lisk-codec": "^0.4.0-rc.2",
"@liskhq/lisk-cryptography": "^4.0.0-rc.2",
"@liskhq/lisk-validator": "^0.8.0-rc.2"
"@liskhq/lisk-codec": "^0.4.0",
"@liskhq/lisk-cryptography": "^4.0.0",
"@liskhq/lisk-validator": "^0.8.0"
},
"devDependencies": {
"@types/jest": "29.2.3",
Expand Down
Loading

0 comments on commit c448ee5

Please sign in to comment.