add blockchain install scripts
This commit is contained in:
parent
0e9e27b97b
commit
178f576cfb
39 changed files with 3938 additions and 750 deletions
17
lib/blockchain/ethereum.js
Normal file
17
lib/blockchain/ethereum.js
Normal 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`)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue