Merge pull request #1133 from chaotixkilla/fix-blockchain-installation
Remove plugin dependency from blockchain status checking
This commit is contained in:
commit
e6194e8d04
4 changed files with 23 additions and 27 deletions
|
|
@ -239,8 +239,18 @@ function supportsBatching (settings, cryptoCode) {
|
|||
}
|
||||
|
||||
function checkBlockchainStatus (settings, cryptoCode) {
|
||||
return fetchWallet(settings, cryptoCode)
|
||||
.then(r => r.wallet.checkBlockchainStatus(cryptoCode))
|
||||
const walletDaemons = {
|
||||
BTC: require('./plugins/wallet/bitcoind/bitcoind.js'),
|
||||
BCH: require('./plugins/wallet/bitcoincashd/bitcoincashd.js'),
|
||||
DASH: require('./plugins/wallet/dashd/dashd.js'),
|
||||
ETH: require('./plugins/wallet/geth/base.js'),
|
||||
LTC: require('./plugins/wallet/litecoind/litecoind.js'),
|
||||
XMR: require('./plugins/wallet/monerod/monerod.js'),
|
||||
ZEC: require('./plugins/wallet/zcashd/zcashd.js')
|
||||
}
|
||||
|
||||
return Promise.resolve(walletDaemons[cryptoCode])
|
||||
.then(({ checkBlockchainStatus }) => checkBlockchainStatus(cryptoCode))
|
||||
}
|
||||
|
||||
const coinFilter = ['ETH']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue