add blockchain install scripts

This commit is contained in:
Josh Harvey 2017-07-01 16:02:46 +03:00
parent 0e9e27b97b
commit 178f576cfb
39 changed files with 3938 additions and 750 deletions

View file

@ -0,0 +1,17 @@
const coinUtils = require('../coin-utils')
const common = require('./common')
module.exports = {setup}
const es = common.es
function setup (dataDir) {
const coinRec = coinUtils.getCryptoCurrency('ETH')
common.firewall([coinRec.defaultPort])
setupPm2(dataDir)
}
function setupPm2 (dataDir) {
es(`pm2 start /usr/local/bin/geth -- --datadir "${dataDir}" --cache 500`)
}