fix blockchain configDir

This commit is contained in:
Josh Harvey 2017-07-18 21:31:51 +02:00
parent ad66fe1b43
commit d0fc03c385
5 changed files with 8 additions and 5 deletions

View file

@ -52,7 +52,7 @@ const CRYPTO_CURRENCIES = [
}
]
module.exports = {buildUrl, cryptoDir, cryptoCurrencies, getCryptoCurrency}
module.exports = {buildUrl, cryptoDir, configPath, cryptoCurrencies, getCryptoCurrency}
function getCryptoCurrency (cryptoCode) {
const cryptoCurrency = _.find(['cryptoCode', cryptoCode], CRYPTO_CURRENCIES)
@ -81,3 +81,6 @@ function cryptoDir (cryptoRec) {
return path.resolve(blockchainDir, code)
}
function configPath (cryptoRec) {
return path.resolve(cryptoDir(cryptoRec), cryptoRec.configFile)
}