Method: Deamons::Geth#start

Defined in:
lib/Deamons/geth.rb

#startObject



19
20
21
22
23
24
25
26
27
# File 'lib/Deamons/geth.rb', line 19

def start
  cmd = "#{ENV.fetch('GETH')} --syncmode=light --rinkeby --rpc --rpcaddr=0.0.0.0 --rpcport=8545 --port=30303 --rpcapi='db,personal,eth,net,web3' --rpccorsdomain='*' --rpcvhosts='*'"
  system(cmd)
  cmd = "#{ENV.fetch('NGROK')}./ngrok http 8545"
  system(cmd)
  rescue ::StandardError => e
    STDERR.puts e.backtrace
    STDERR.puts '\n'
end