blockbook/bchain/coins/eth/eth.md
2018-04-09 12:06:04 +02:00

26 lines
1006 B
Markdown

## Ethereum Testnet Setup
Get Ethereum
```
git clone https://github.com/ethereum/go-ethereum
cd go-ethereum/
make geth
```
Data are stored in */data2/eth*, in folders */data2/eth/eth* for Ethereum data, */data2/eth/blockbook* for Blockbook data.
Run geth with rpc and websocket interfaces, bound to all ip addresses - insecure! (run with nohup or daemonize or using screen)
```
go-ethereum/build/bin/geth --datadir /data2/eth/eth --port "35555" --rpc --rpcport 8545 -rpcaddr 0.0.0.0 --rpccorsdomain "*" --ws --wsaddr 0.0.0.0 --wsport 8546 --wsorigins "*" 2>/data2/eth/eth/eth.log
```
Create script that runs blockbook *run-eth-blockbook.sh*
```
#!/bin/bash
cd go/src/blockbook
./blockbook -coin=eth -blockchaincfg=/data2/eth/blockbook/eth.json -datadir=/data2/eth/blockbook/db -sync -httpserver=:8555 -socketio=:8556 -certfile=server/testcert $1
```
To run blockbook with logging to file (run with nohup or daemonize or using screen)
```
./run-eth-blockbook.sh 2>/data2/eth/blockbook/blockbook.log
```