Welcome to your one-stop resource for everything you need to know about the Parity Zcash client! Following this guide, you’ll learn how to install it, run tests, and put it to work effectively. Let’s dive in!
Installing from Source
To get started with the Parity Zcash client, you need to install rustc and cargo, as they are crucial to the build process. The minimum supported version is rustc 1.23.0.
Step 1: Install Rustc and Cargo
The simplest way to install the stable binaries for Linux and macOS is by running the following command in your shell:
curl https://sh.rustup.rs -sSf | sh
If you are using Windows, download the binaries directly from the rust-lang website.
Step 2: Install C and C++ Compilers
You will need C and C++ compilers to build some dependencies:
- On macOS, install Xcode.
- On Linux, run:
sudo apt-get update
sudo apt-get install build-essential
Step 3: Clone and Build Pzec
Now, let’s clone the repository and build pzec:
git clone https://github.com/paritytech/parity-zcash
cd parity-zcash
cargo build -p pzec --release
Pzec is now accessible at target/release/pzec.
Installing the Snap
If you’re using a supported Linux distribution, install the snap by running:
sudo snap install parity-zcash --edge
Running Tests
To ensure that everything is functioning properly, you should run tests:
Running Unit Tests
cargo test --all
Going Online
Pzec connects to Zcash seed nodes by default. To start syncing the main network, simply run:
target/release/pzec
For the test network, use:
target/release/pzec --testnet
To suppress syncing output, add the --quiet
flag.
Importing zcashd Database
If you have an existing zcashd database, you can import it with:
target/release/pzec import $ZCASH_DB/blocks
By default, this will verify the imported blocks, but you can disable this with:
--verification-level=none
Command Line Interface
For a comprehensive list of CLI options, check out:
here.Logging
For developers and power users, you can enable detailed client logging with:
RUST_LOG=verification=info target/release/pzec
Multiple logging levels can be activated simultaneously, for example:
RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace target/release/pzec
Troubleshooting Ideas/Instructions
- If you encounter issues installing rustc or cargo, ensure that you’re using the right shell commands for your operating system.
- For library linking errors, make sure you’ve installed the necessary C/C++ compilers.
- In case of syncing problems, double-check the seed node list and ensure that your internet connection is stable.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Internal Documentation
Once released, pzec documentation will be available here. Meanwhile, you can build it locally:
cd parity-zcash/tools
doc.sh
open target/doc/pzec/index.html
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.