fix blockchain configDir
This commit is contained in:
parent
ad66fe1b43
commit
d0fc03c385
5 changed files with 8 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue