Update README
This commit is contained in:
parent
feaf55e767
commit
cc2c7d5112
@ -73,6 +73,7 @@ Blockbook logs only to stderr, logging to files is disabled. Verbosity of logs c
|
||||
- [BTC](bchain/coins/btc/btc.md)
|
||||
- [BTC Testnet](bchain/coins/btc/btctestnet.md)
|
||||
- [ZCash](bchain/coins/zec/zec.md)
|
||||
- [Ethereum](bchain/coins/eth/eth.md)
|
||||
- [Ethereum Ropsten Testnet](bchain/coins/eth/ethropsten.md)
|
||||
|
||||
# Data storage in RocksDB
|
||||
|
||||
25
bchain/coins/eth/eth.md
Normal file
25
bchain/coins/eth/eth.md
Normal file
@ -0,0 +1,25 @@
|
||||
## 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
|
||||
```
|
||||
@ -21,5 +21,5 @@ cd go/src/blockbook
|
||||
```
|
||||
To run blockbook with logging to file (run with nohup or daemonize or using screen)
|
||||
```
|
||||
./run-eth-testnet-blockbook.sh 2>/data/testnet/eth-testnet/blockbook.log
|
||||
./run-eth-testnet-blockbook.sh 2>/data/eth-testnet/blockbook/blockbook.log
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user