From 6a2e3bc34888da987997374f1cf868c54b23bc4d Mon Sep 17 00:00:00 2001 From: pedromiguelmiranda <32689555+pedromiguelmiranda@users.noreply.github.com> Date: Thu, 4 Oct 2018 19:37:08 +0100 Subject: [PATCH] Drop Geth installation upon coins installation (#181) * drop geth installation * code refactoring --- lib/blockchain/install.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/blockchain/install.js b/lib/blockchain/install.js index c2094540..c4083f60 100644 --- a/lib/blockchain/install.js +++ b/lib/blockchain/install.js @@ -96,15 +96,14 @@ function plugin (crypto) { return plugin } -function run () { - const ETHEREUM_CRYPTO_CODE ='ETH' +function run () { const choices = _.map(c => { const checked = isInstalledSoftware(c) && isInstalledVolume(c) return { name: c.display, value: c.code, checked, - disabled: c.cryptoCode === ETHEREUM_CRYPTO_CODE + disabled: c.cryptoCode === 'ETH' ? 'Installed, use Infura option' : checked && 'Installed' } @@ -120,8 +119,5 @@ function run () { }) inquirer.prompt(questions) - .then(answers => { - answers.crypto.push(coinUtils.getCryptoCurrency(ETHEREUM_CRYPTO_CODE).code) - processCryptos(answers.crypto) - }) + .then(answers => processCryptos(answers.crypto)) }