ethstats-client/bin/eth.sh

9 lines
444 B
Bash
Raw Normal View History

2015-02-12 22:59:01 +01:00
#!/bin/bash
2015-04-05 15:20:45 +02:00
IP=$(ec2metadata --public-ipv4)
2015-02-12 22:59:01 +01:00
trap "exit" INT
2015-04-03 00:02:32 +02:00
if [[ -f /usr/bin/geth ]];
then
2015-04-05 15:20:45 +02:00
geth -rpc -rpcport "8080" -maxpeers "50" -loglevel "4" -bootnodes "enode://09fbeec0d047e9a37e63f60f8618aa9df0e49271f3fadb2c070dc09e2099b95827b63a8b837c6fd01d0802d457dd83e3bd48bd3e6509f8209ed90dabbc30e3d3@52.16.188.185:30303" -nat "extip:$IP"
else
2015-04-16 21:42:52 +02:00
eth --bootstrap --peers 50 --remote 52.16.188.185:30303 --mining off --json-rpc --public-ip $IP -v 4
fi