blockbook/bchain/coins/eth/eth.md

26 lines
1.0 KiB
Markdown
Raw Normal View History

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