lamassu-server/lib/blockchain/zcash.js
Neal Conner ebbeff4211 Update ZEC, BCH, ETH, LTC wallets (#119)
* 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
2018-06-05 22:50:57 +03:00

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`
}