Go to file
Deirdre Connolly eced6f6e27
Update linux build requirements (#29)
Resolves #28
2019-06-18 17:19:57 -04:00
bencher do not verify headers twice 2019-04-04 07:25:25 +03:00
chain groth16 proof struct helper 2019-04-10 16:25:31 +03:00
crypto Bump lazy_static from 1.2.0 to 1.3.0 (#17) 2019-06-18 00:26:50 -04:00
db Bump parking_lot from 0.7.1 to 0.8.0 2019-06-02 01:06:11 +00:00
doc Merge branch 'master' of github.com:paritytech/parity-bitcoin into csv 2017-05-03 14:37:54 +02:00
import ignore zero-filled gaps in blk files 2019-04-11 14:14:38 +03:00
keys Bump lazy_static from 1.2.0 to 1.3.0 (#17) 2019-06-18 00:26:50 -04:00
logs update and dedup deps 2019-03-25 12:39:24 +03:00
message changed max number of headers in the headers message 2019-03-20 14:03:25 +03:00
miner unify fee calculation 2019-04-15 19:03:55 +03:00
network Bump lazy_static from 1.2.0 to 1.3.0 (#17) 2019-06-18 00:26:50 -04:00
p2p Renaming (#1) 2019-06-17 03:25:49 -04:00
primitives update and dedup deps 2019-03-25 12:39:24 +03:00
res fix test and new verifying key 2019-04-29 17:41:00 +03:00
rpc fix couple of warnings 2019-05-21 16:04:25 +03:00
script fix sighash 2019-05-16 14:03:59 +03:00
serialization ignore zero-filled gaps in blk files 2019-04-11 14:14:38 +03:00
serialization_derive overwinter + sapling transactions (start) 2018-11-19 09:59:17 +03:00
snap Renaming (#1) 2019-06-17 03:25:49 -04:00
storage Bump parking_lot from 0.7.1 to 0.8.0 2019-06-02 01:06:11 +00:00
sync Bump parking_lot from 0.7.1 to 0.8.0 2019-06-02 01:06:11 +00:00
test-data fixed fee calculation in BlockCoinbaseMinerReward 2019-04-15 10:01:39 +03:00
tools Renaming (#1) 2019-06-17 03:25:49 -04:00
verification Bump parking_lot from 0.7.1 to 0.8.0 2019-06-02 01:06:11 +00:00
zebra Renaming (#1) 2019-06-17 03:25:49 -04:00
.dockerignore basic docker setup 2017-04-05 16:29:46 +07:00
.editorconfig tests for block hash, .editorconfig and bitcoin network enum 2016-08-16 14:32:24 +02:00
.gitignore Merge branch 'master' into mempool 2016-10-16 21:38:04 +03:00
.gitlab-ci.yml Remove tools/test.sh and replace it with cargo test --all 2018-05-10 12:45:51 +02:00
.gitmodules Regtests on the CI (#244) 2016-12-02 10:27:48 +01:00
.travis.yml Remove too verbose travis messaging 2019-02-06 16:16:35 +03:00
CLI.md Renaming (#1) 2019-06-17 03:25:49 -04:00
Cargo.lock Bump proc-macro2 from 0.4.24 to 0.4.30 (#14) 2019-06-18 14:32:38 -04:00
Cargo.toml Renaming (#1) 2019-06-17 03:25:49 -04:00
JSON-RPC.md Updating for Zcash default ports 2019-06-18 15:42:18 -04:00
LICENSE Initial commit 2016-08-15 11:30:16 +02:00
README.md Update linux build requirements (#29) 2019-06-18 17:19:57 -04:00

README.md

Zebra: the Zcash Foundation client.

Build Status

Blog: Parity teams up with Zcash Foundation for Parity Zcash client

Installing from source

Installing zebra from source requires rustc and cargo.

Minimal supported version is rustc 1.35.0 (fd19989 2019-05-23), and we generally target the stable channel.

Install rustc and cargo

Both rustc and cargo are a part of rust tool-chain.

An easy way to install the stable binaries for Linux and Mac is to run this in your shell:

curl https://sh.rustup.rs -sSf | sh

Windows binaries can be downloaded from rust-lang website.

Install C and C++ compilers

You will need the clang and gcc compilers plus cmake to build some of the dependencies.

On macOS

build-essential is a Debian package. On macOS you will need to make sure you have Xcode installed. If you already have Homebrew installed, you probably also already have the Xcode tools installed as well. If not, you can run the command below:

xcode-select --install

On Linux

sudo apt-get update
sudo apt-get install build-essential cmake clang

Clone and build zebra

Now let's clone zebra and enter it's directory:

git clone https://github.com/ZcashFoundation/zebra
cd zebra

# builds zebra in release mode
cargo build -p zebra --release

zebra is now available at ./target/release/zebra.

Installing the snap

In any of the supported Linux distros:

sudo snap install zebra --edge

Running tests

zebra has internal unit tests and it conforms to external integration tests.

Running unit tests

Assuming that repository is already cloned, we can run unit tests with this command:

cargo test --all

Going online

By default parity connects to Zcash seednodes. Full list is here.

To start syncing the main network, just start the client without any arguments:

./target/release/zebra

To start syncing the testnet:

./target/release/zebra --testnet

To not print any syncing progress add --quiet flag:

./target/release/zebra --quiet

Importing zcashd database

It it is possible to import existing zcashd database:

# where $ZCASH_DB is path to your zcashd database. By default:
# on macOS: "/Users/user/Library/Application Support/Zcash"
# on Linux: "~/.zcash"
./target/release/zebra import "$ZCASH_DB/blocks"

By default, import verifies the imported blocks. You can disable this, by adding the --verification-level=none option.

./target/release/zebra --verification-level=none import "$ZCASH_DB/blocks"

Command line interface

Full list of CLI options, which is available under zebra --help: see here

Logging

This is a section only for developers and power users.

You can enable detailed client logging by setting the environment variable RUST_LOG, e.g.,

RUST_LOG=verification=info ./target/release/zebra

zebra started with this environment variable will print all logs coming from verification module with verbosity info or higher. Available log levels are:

  • error
  • warn
  • info
  • debug
  • trace

It's also possible to start logging from multiple modules in the same time:

RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/zebra

Internal documentation

Once released, zebra documentation will be available here. Meanwhile it's only possible to build it locally:

cd zebra
./tools/doc.sh
open target/doc/zebra/index.html