12 lines
399 B
JavaScript
12 lines
399 B
JavaScript
const coinUtils = require('../coin-utils')
|
|
|
|
const common = require('./common')
|
|
|
|
module.exports = {setup}
|
|
|
|
function setup (dataDir) {
|
|
const coinRec = coinUtils.getCryptoCurrency('ETH')
|
|
common.firewall([coinRec.defaultPort])
|
|
const cmd = `/usr/local/bin/${coinRec.daemon} --datadir "${dataDir}" --syncmode="light" --cache 2048 --maxpeers 40 --http`
|
|
common.writeSupervisorConfig(coinRec, cmd)
|
|
}
|