fix: remove unnecessary variable
This commit is contained in:
parent
7f70b9d09a
commit
46d84b99b0
1 changed files with 1 additions and 3 deletions
|
|
@ -6,8 +6,6 @@ const { utils: coinUtils } = require('lamassu-coins')
|
||||||
|
|
||||||
const cryptos = coinUtils.cryptoCurrencies()
|
const cryptos = coinUtils.cryptoCurrencies()
|
||||||
|
|
||||||
const supervisorStates = ['RUNNING', 'STARTING']
|
|
||||||
|
|
||||||
const PLUGINS = {
|
const PLUGINS = {
|
||||||
BTC: require('../lib/blockchain/bitcoin.js'),
|
BTC: require('../lib/blockchain/bitcoin.js'),
|
||||||
LTC: require('../lib/blockchain/litecoin.js'),
|
LTC: require('../lib/blockchain/litecoin.js'),
|
||||||
|
|
@ -30,7 +28,7 @@ function run () {
|
||||||
const cryptoPlugin = plugin(crypto)
|
const cryptoPlugin = plugin(crypto)
|
||||||
const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim()
|
const status = common.es(`sudo supervisorctl status ${crypto.code} | awk '{ print $2 }'`).trim()
|
||||||
|
|
||||||
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), _.includes(status, supervisorStates))
|
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode), _.includes(status, ['RUNNING', 'STARTING']))
|
||||||
}, cryptos)
|
}, cryptos)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue