Go to file
Svyatoslav Nikolsky 700ba96726 updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
bencher tabify some more 2019-01-09 12:04:58 +03:00
chain getblock RPC 2019-01-14 13:50:41 +03:00
crypto tabify some more 2019-01-09 12:04:58 +03:00
db update getdifficulty RPC 2019-01-14 12:43:23 +03:00
doc Merge branch 'master' of github.com:paritytech/parity-bitcoin into csv 2017-05-03 14:37:54 +02:00
docker updated Dockerfile 2018-02-12 10:37:54 +03:00
import Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
keys new transparent address format 2018-12-25 10:38:07 +03:00
logs Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
message sapling verifying keys + tests 2018-12-20 15:55:41 +03:00
miner updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
network updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
p2p cleaning up 2018-11-14 11:53:32 +03:00
primitives nullifier in storage 2018-11-30 18:25:59 +03:00
pzec updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
res sapling verifying keys + tests 2018-12-20 15:55:41 +03:00
rpc updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
script tabify some more 2019-01-09 12:04:58 +03:00
serialization augment tree state 2018-12-29 19:23:33 +03:00
serialization_derive overwinter + sapling transactions (start) 2018-11-19 09:59:17 +03:00
snap Add the home plug to the snap 2018-04-18 11:54:08 -06:00
storage update getdifficulty RPC 2019-01-14 12:43:23 +03:00
sync updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
test-data getblock RPC 2019-01-14 13:50:41 +03:00
tools Update binaries 2018-12-18 12:59:41 +03:00
verification updated getblocktemplate RPC 2019-01-15 12:36:14 +03: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 regenerate token again 2018-12-24 17:20:49 +03:00
CLI.md remove options 2018-12-20 14:37:49 +03:00
Cargo.lock updated getblocktemplate RPC 2019-01-15 12:36:14 +03:00
Cargo.toml remove patch 2018-12-29 21:44:33 +03:00
JSON-RPC.md getblock RPC 2019-01-14 13:50:41 +03:00
LICENSE Initial commit 2016-08-15 11:30:16 +02:00
README.md Update travis url in README 2018-12-24 14:01:15 +03:00

README.md

The Parity Zcash client.

Build Status Snap Status

Gitter Gitter https://gitter.im/paritytech/parity-zcash

Installing from source

Installing pzec from source requires rustc and cargo.

Minimal supported version is rustc 1.23.0 (766bd11c8 2018-01-01)

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 -sSf https://static.rust-lang.org/rustup.sh | sh

Windows binaries can be downloaded from rust-lang website.

Install C and C++ compilers

You will need the cc and gcc compilers to build some of the dependencies.

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

Clone and build pzec

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

git clone https://github.com/paritytech/parity-zcash
cd parity-zcash

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

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

Installing the snap

In any of the supported Linux distros:

sudo snap install parity-zcash --edge

Running tests

pzec 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, passing selected fork flag. For example:

./target/release/pzec

To start syncing the testnet:

./target/release/pzec --testnet

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

./target/release/pzec --quiet

Importing zcashd database

It it is possible to import existing bitcoind database:

# where $BITCOIND_DB is path to your bitcoind database, e.g., "/Users/user/Library/Application Support"
./target/release/pzec import "$BITCOIND_DB/Bitcoin/blocks"

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

./target/release/pzec import "#BITCOIND_DB/Bitcoin/blocks" --verification-level==none

Command line interface

Full list of CLI options, which is available under pzec --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/pzec

pzec 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/pzec

Internal documentation

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

cd parity-zcash
./tools/doc.sh
open target/doc/pzec/index.html