From cc2c7d5112e5de2378349f7c44a1f8d20d554140 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Mon, 9 Apr 2018 12:06:04 +0200 Subject: [PATCH] Update README --- README.md | 1 + bchain/coins/eth/eth.md | 25 +++++++++++++++++++++++++ bchain/coins/eth/ethropsten.md | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 bchain/coins/eth/eth.md diff --git a/README.md b/README.md index 667e7ad3..50af24f6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/bchain/coins/eth/eth.md b/bchain/coins/eth/eth.md new file mode 100644 index 00000000..093e5638 --- /dev/null +++ b/bchain/coins/eth/eth.md @@ -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 +``` diff --git a/bchain/coins/eth/ethropsten.md b/bchain/coins/eth/ethropsten.md index 6a666e82..604bc220 100644 --- a/bchain/coins/eth/ethropsten.md +++ b/bchain/coins/eth/ethropsten.md @@ -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 ```