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

Commit

Permalink
Merge branch 'release/6.0.0' of https://github.com/LiskHQ/lisk-sdk in…
Browse files Browse the repository at this point in the history
…to development
  • Loading branch information
shuse2 committed Aug 25, 2023
2 parents 9829ef6 + bde252d commit 9e5242e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { MonitorPlugin } from '@liskhq/lisk-framework-monitor-plugin';
import { ReportMisbehaviorPlugin } from '@liskhq/lisk-framework-report-misbehavior-plugin';
import { DashboardPlugin } from '@liskhq/lisk-framework-dashboard-plugin';
import { FaucetPlugin } from '@liskhq/lisk-framework-faucet-plugin';
import { ChainConnectorPlugin } from '@liskhq/lisk-framework-chain-connector-plugin';
import { join } from 'path';
import { getApplication } from '../app/app';

Expand Down Expand Up @@ -75,7 +76,7 @@ export class StartCommand extends BaseStartCommand {
'enable-report-misbehavior-plugin': flagParser.boolean({
description:
'Enable ReportMisbehavior Plugin. Environment variable "LISK_ENABLE_REPORT_MISBEHAVIOR_PLUGIN" can also be used.',
env: 'LISK_ENABLE_MONITOR_PLUGIN',
env: 'LISK_ENABLE_MISBEHAVIOR_PLUGIN',
default: false,
}),
'enable-faucet-plugin': flagParser.boolean({
Expand All @@ -102,6 +103,12 @@ export class StartCommand extends BaseStartCommand {
env: 'LISK_DASHBOARD_PLUGIN_PORT',
dependsOn: ['enable-dashboard-plugin'],
}),
'enable-chain-connector-plugin': flagParser.boolean({
description:
'Enable ChainConnector Plugin. Environment variable "LISK_ENABLE_CHAIN_CONNECTOR_PLUGIN" can also be used.',
env: 'LISK_ENABLE_CONNECTOR_PLUGIN',
default: false,
}),
};

public async getApplication(config: PartialApplicationConfig): Promise<Application> {
Expand All @@ -126,6 +133,9 @@ export class StartCommand extends BaseStartCommand {
if (flags['enable-dashboard-plugin']) {
app.registerPlugin(new DashboardPlugin(), { loadAsChildProcess: true });
}
if (flags['enable-chain-connector-plugin']) {
app.registerPlugin(new ChainConnectorPlugin(), { loadAsChildProcess: true });
}

return app;
}
Expand Down

0 comments on commit 9e5242e

Please sign in to comment.