|
|
@ -20,23 +20,6 @@ import { |
|
|
|
} from '../../components/addcoin/payload'; |
|
|
|
|
|
|
|
export function addCoin(coin, mode, syncOnly, port) { |
|
|
|
if (Config && |
|
|
|
Config.iguanaLessMode && |
|
|
|
mode !== '-1') { |
|
|
|
return dispatch => { |
|
|
|
startIguanaInstance('main', coin) |
|
|
|
.then(function(json) { |
|
|
|
setTimeout(function() { |
|
|
|
console.log(`started ${coin} / main`, json); |
|
|
|
_addCoin(); |
|
|
|
}, 2000); |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
_addCoin(); |
|
|
|
} |
|
|
|
|
|
|
|
function _addCoin() { |
|
|
|
if (mode === '-1') { |
|
|
|
return dispatch => { |
|
|
|
dispatch(shepherdGetConfig(coin, mode)); |
|
|
@ -108,7 +91,6 @@ export function addCoin(coin, mode, syncOnly, port) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export function iguanaAddCoin(coin, mode, acData, port) { |
|
|
|