Update eth mainnet configuration

This commit is contained in:
Martin Boehm 2018-04-09 16:32:05 +02:00
parent a117bd2abd
commit 10c05dc176
2 changed files with 8 additions and 4 deletions

View File

@ -5,11 +5,11 @@ 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.
Data are stored in */data/eth*, in folders */data/eth/eth* for Ethereum data, */data/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
go-ethereum/build/bin/geth --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
```
Create script that runs blockbook *run-eth-blockbook.sh*
@ -17,9 +17,9 @@ 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
./blockbook -coin=eth -blockchaincfg=/data/eth/blockbook/eth.json -datadir=/data/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
./run-eth-blockbook.sh 2>/data/eth/blockbook/blockbook.log
```

4
configs/eth.json Normal file
View File

@ -0,0 +1,4 @@
{
"rpcURL": "ws://10.34.3.4:8546",
"rpcTimeout": 25
}