* Update ZEC & ETH wallet versions * Update ZEC disabledeprecation * Geth 1.8.10 * Litecoin 0.16.0 Litecoin SegWit addresses now default * Bitcoin ABC 0.17.2
34 lines
913 B
JavaScript
34 lines
913 B
JavaScript
const path = require('path')
|
|
|
|
const coinUtils = require('../coin-utils')
|
|
|
|
const common = require('./common')
|
|
|
|
module.exports = {setup}
|
|
|
|
const es = common.es
|
|
const logger = common.logger
|
|
|
|
function setup (dataDir) {
|
|
es('sudo apt-get update')
|
|
es('sudo apt-get install libgomp1 -y')
|
|
const coinRec = coinUtils.getCryptoCurrency('ZEC')
|
|
|
|
common.firewall([coinRec.defaultPort])
|
|
logger.info('Fetching Zcash proofs, will take a while...')
|
|
es('zcash-fetch-params 2>&1')
|
|
logger.info('Finished fetching proofs.')
|
|
const config = buildConfig()
|
|
common.writeFile(path.resolve(dataDir, coinRec.configFile), config)
|
|
const cmd = `/usr/local/bin/${coinRec.daemon} -datadir=${dataDir} -disabledeprecation=1.1.1`
|
|
common.writeSupervisorConfig(coinRec, cmd)
|
|
}
|
|
|
|
function buildConfig () {
|
|
return `mainnet=1
|
|
addnode=mainnet.z.cash
|
|
rpcuser=lamassuserver
|
|
rpcpassword=${common.randomPass()}
|
|
dbcache=500
|
|
keypool=10000`
|
|
}
|