From 1997434f4aeb28857c2c5d10aa54f73d97ea8eff Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Tue, 3 Jul 2018 14:46:38 +0200 Subject: [PATCH] Run kovan by default (fix #119) --- packages/fether-electron/src/main/cli/index.js | 4 ++++ packages/fether-electron/src/main/index.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/fether-electron/src/main/cli/index.js b/packages/fether-electron/src/main/cli/index.js index 87098297..928f06c4 100644 --- a/packages/fether-electron/src/main/cli/index.js +++ b/packages/fether-electron/src/main/cli/index.js @@ -22,6 +22,10 @@ if (process.defaultApp !== true) { cli .version(version) .allowUnknownOption() + .option( + '--chain', + 'The network to connect to, can be one of "foundation", "kovan" or "ropsten". (default: "kovan")' + ) .option( '--no-run-parity', `${productName} will not attempt to run the locally installed parity.` diff --git a/packages/fether-electron/src/main/index.js b/packages/fether-electron/src/main/index.js index 5cf7436e..732e7743 100644 --- a/packages/fether-electron/src/main/index.js +++ b/packages/fether-electron/src/main/index.js @@ -59,7 +59,9 @@ function createWindow () { ) .then(() => // Run parity when installed - runParity(err => handleError(err, 'An error occured with Parity.')) + runParity(['--light', '--chain', cli.chain || 'kovan'], err => + handleError(err, 'An error occured with Parity.') + ) ) .then(() => { // Notify the renderers -- GitLab