From 283d4cf2b9c5b462d6d06e4229c470697441241a Mon Sep 17 00:00:00 2001 From: jash Date: Sat, 3 Nov 2018 12:32:58 +0100 Subject: [PATCH] removed electrum feature --- .../generators/app/features.json | 5 --- .../generators/app/prompters/300_electrum.js | 43 ------------------- .../app/templates/installer/config.sh | 1 - 3 files changed, 49 deletions(-) delete mode 100644 install/generator-cyphernode/generators/app/prompters/300_electrum.js diff --git a/install/generator-cyphernode/generators/app/features.json b/install/generator-cyphernode/generators/app/features.json index bfe2e2f..e0145ec 100644 --- a/install/generator-cyphernode/generators/app/features.json +++ b/install/generator-cyphernode/generators/app/features.json @@ -2,10 +2,5 @@ { "name": "Lightning node", "value": "lightning" - - }, - { - "name": "Electrum server", - "value": "electrum" } ] \ No newline at end of file diff --git a/install/generator-cyphernode/generators/app/prompters/300_electrum.js b/install/generator-cyphernode/generators/app/prompters/300_electrum.js deleted file mode 100644 index 1bf6dbc..0000000 --- a/install/generator-cyphernode/generators/app/prompters/300_electrum.js +++ /dev/null @@ -1,43 +0,0 @@ -const chalk = require('chalk'); - -const name = 'electrum'; - -const capitalise = function( txt ) { - return txt.charAt(0).toUpperCase() + txt.substr(1); -}; - -const prefix = function() { - return chalk.green(capitalise(name)+': '); -}; - -const featureCondition = function(props) { - return props.features && props.features.indexOf( name ) != -1; -}; - -module.exports = { - name: function() { - return name; - }, - prompts: function( utils ) { - return [{ - when: featureCondition, - type: 'list', - name: 'electrum_implementation', - default: utils._getDefault( 'electrum_implementation' ), - message: prefix()+'What electrum implementation do you want to use?'+utils._getHelp('electrum_implementation'), - choices: [ - { - name: 'Electrum personal server', - value: 'eps' - }, - { - name: 'Electrumx server', - value: 'elx' - } - ] - }]; - }, - templates: function( props ) { - return []; - } -}; \ No newline at end of file diff --git a/install/generator-cyphernode/generators/app/templates/installer/config.sh b/install/generator-cyphernode/generators/app/templates/installer/config.sh index 79c3aa7..4a3c4d7 100644 --- a/install/generator-cyphernode/generators/app/templates/installer/config.sh +++ b/install/generator-cyphernode/generators/app/templates/installer/config.sh @@ -1,7 +1,6 @@ INSTALLER_MODE=<%= installer_mode %> BITCOIN_INTERNAL=<%= (bitcoin_mode==="internal"?'true':'false') %> FEATURE_LIGHTNING=<%= (features.indexOf('lightning') != -1)?'true':'false' %> -FEATURE_ELECTRUM=<%= (features.indexOf('electrum') != -1)?'true':'false' %> LIGHTNING_IMPLEMENTATION=<%= lightning_implementation %> BITCOIN_DATAPATH=<%= bitcoin_datapath %> LIGHTNING_DATAPATH=<%= lightning_datapath %>