fix datadirs in lamassu-coins
This commit is contained in:
parent
613a5fb450
commit
996a38c2dc
5 changed files with 5 additions and 15 deletions
|
|
@ -2,7 +2,6 @@ const fs = require('fs')
|
|||
const path = require('path')
|
||||
|
||||
const coinUtils = require('../coin-utils')
|
||||
const options = require('../options')
|
||||
|
||||
const common = require('./common')
|
||||
|
||||
|
|
@ -14,8 +13,7 @@ function setup (dataDir) {
|
|||
common.firewall([coinRec.defaultPort])
|
||||
const config = buildConfig()
|
||||
fs.writeFileSync(path.resolve(dataDir, coinRec.configFile), config)
|
||||
const blockchainDir = options.blockchainDir
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${blockchainDir}`
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${dataDir}`
|
||||
common.writeSupervisorConfig(coinRec, cmd)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ const fs = require('fs')
|
|||
const path = require('path')
|
||||
|
||||
const coinUtils = require('../coin-utils')
|
||||
const options = require('../options')
|
||||
|
||||
const common = require('./common')
|
||||
|
||||
|
|
@ -13,9 +12,8 @@ const coinRec = coinUtils.getCryptoCurrency('BTC')
|
|||
function setup (dataDir) {
|
||||
common.firewall([coinRec.defaultPort])
|
||||
const config = buildConfig()
|
||||
const blockchainDir = options.blockchainDir
|
||||
fs.writeFileSync(path.resolve(dataDir, coinRec.configFile), config)
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${blockchainDir}`
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${dataDir}`
|
||||
common.writeSupervisorConfig(coinRec, cmd)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
const coinUtils = require('../coin-utils')
|
||||
const options = require('../options')
|
||||
|
||||
const common = require('./common')
|
||||
|
||||
|
|
@ -8,7 +7,6 @@ module.exports = {setup}
|
|||
function setup (dataDir) {
|
||||
const coinRec = coinUtils.getCryptoCurrency('ETH')
|
||||
common.firewall([coinRec.defaultPort])
|
||||
const blockchainDir = options.blockchainDir
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} --datadir "${blockchainDir}" --cache 500`
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} --datadir "${dataDir}" --cache 500`
|
||||
common.writeSupervisorConfig(coinRec, cmd)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ const fs = require('fs')
|
|||
const path = require('path')
|
||||
|
||||
const coinUtils = require('../coin-utils')
|
||||
const options = require('../options')
|
||||
|
||||
const common = require('./common')
|
||||
|
||||
|
|
@ -14,8 +13,7 @@ function setup (dataDir) {
|
|||
common.firewall([coinRec.defaultPort])
|
||||
const config = buildConfig()
|
||||
fs.writeFileSync(path.resolve(dataDir, coinRec.configFile), config)
|
||||
const blockchainDir = options.blockchainDir
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${blockchainDir}`
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${dataDir}`
|
||||
common.writeSupervisorConfig(coinRec, cmd)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ const fs = require('fs')
|
|||
const path = require('path')
|
||||
|
||||
const coinUtils = require('../coin-utils')
|
||||
const options = require('../options')
|
||||
|
||||
const common = require('./common')
|
||||
|
||||
|
|
@ -22,8 +21,7 @@ function setup (dataDir) {
|
|||
logger.info('Finished fetching proofs.')
|
||||
const config = buildConfig()
|
||||
fs.writeFileSync(path.resolve(dataDir, 'zcash.conf'), config)
|
||||
const blockchainDir = options.blockchainDir
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${blockchainDir}`
|
||||
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${dataDir}`
|
||||
common.writeSupervisorConfig(coinRec, cmd)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue