From 10c05dc1760852199939a07049ca1e9c7dbbde27 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Mon, 9 Apr 2018 16:32:05 +0200 Subject: [PATCH] Update eth mainnet configuration --- bchain/coins/eth/eth.md | 8 ++++---- configs/eth.json | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 configs/eth.json diff --git a/bchain/coins/eth/eth.md b/bchain/coins/eth/eth.md index 093e5638..5a27eeec 100644 --- a/bchain/coins/eth/eth.md +++ b/bchain/coins/eth/eth.md @@ -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 ``` diff --git a/configs/eth.json b/configs/eth.json new file mode 100644 index 00000000..3ce3226c --- /dev/null +++ b/configs/eth.json @@ -0,0 +1,4 @@ +{ + "rpcURL": "ws://10.34.3.4:8546", + "rpcTimeout": 25 +} \ No newline at end of file