Merge branch 'docs' of https://github.com/braydonf/blockbook into braydonf-docs
commit
00352cb5fe
|
@ -8,6 +8,7 @@ debug*
|
|||
docker/blockbook
|
||||
build/pkg-defs
|
||||
build/blockbook
|
||||
build/blockchaincfg.json
|
||||
build/ldb
|
||||
build/sst_dump
|
||||
build/*.deb
|
||||
|
|
|
@ -194,7 +194,7 @@ like macOS or Windows, please read instructions specific for each project.
|
|||
Setup go environment:
|
||||
|
||||
```
|
||||
wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.tz && tar xf go1.14.2.linux-amd64.tar.gz
|
||||
wget https://golang.org/dl/go1.14.2.linux-amd64.tar.gz && tar xf go1.14.2.linux-amd64.tar.gz
|
||||
sudo mv go /opt/go
|
||||
sudo ln -s /opt/go/bin/go /usr/bin/go
|
||||
# see `go help gopath` for details
|
||||
|
@ -211,6 +211,7 @@ sudo apt-get update && sudo apt-get install -y \
|
|||
build-essential git wget pkg-config libzmq3-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev
|
||||
git clone https://github.com/facebook/rocksdb.git
|
||||
cd rocksdb
|
||||
git checkout v6.8.1
|
||||
CFLAGS=-fPIC CXXFLAGS=-fPIC make release
|
||||
```
|
||||
|
||||
|
@ -223,6 +224,15 @@ export CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -ldl -lbz2 -ls
|
|||
|
||||
Install ZeroMQ: https://github.com/zeromq/libzmq
|
||||
|
||||
```
|
||||
git clone https://github.com/zeromq/libzmq
|
||||
cd libzmq
|
||||
./autogen.sh
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
Get blockbook sources, install dependencies, build:
|
||||
|
||||
```
|
||||
|
@ -244,7 +254,7 @@ Blockbook's blockchain configuration from our coin definition files.
|
|||
|
||||
Example for Bitcoin:
|
||||
```
|
||||
contrib/scripts/build-blockchaincfg.sh
|
||||
./contrib/scripts/build-blockchaincfg.sh <coin>
|
||||
./blockbook -sync -blockchaincfg=build/blockchaincfg.json -internal=:9030 -public=:9130 -certfile=server/testcert -logtostderr
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue