fix: json-rpc exporting and undefined blockchain dir
This commit is contained in:
parent
bbde0fc2b6
commit
50c07c5e8f
7 changed files with 16 additions and 24 deletions
|
|
@ -5,14 +5,16 @@ const jsonRpc = require('../../common/json-rpc')
|
|||
|
||||
const { COINS, utils } = require('lamassu-coins')
|
||||
|
||||
const blockchainUtils = require('../../../coin-utils')
|
||||
const BN = require('../../../bn')
|
||||
const E = require('../../../error')
|
||||
const { logger } = require('../../../blockchain/common')
|
||||
const options = require('../../../options')
|
||||
|
||||
const blockchainDir = options.blockchainDir
|
||||
|
||||
const cryptoRec = utils.getCryptoCurrency(COINS.XMR)
|
||||
const configPath = utils.configPath(cryptoRec, blockchainUtils.blockchainDir())
|
||||
const walletDir = path.resolve(utils.cryptoDir(cryptoRec, blockchainUtils.blockchainDir()), 'wallets')
|
||||
const configPath = utils.configPath(cryptoRec, blockchainDir)
|
||||
const walletDir = path.resolve(utils.cryptoDir(cryptoRec, blockchainDir), 'wallets')
|
||||
const unitScale = cryptoRec.unitScale
|
||||
|
||||
function rpcConfig () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue