Go to file
Marek bd122b6f7c
add(consensus): Check consensus branch ids in tx verifier (#9063)
* Add a consensus branch id check to tx verifier

* Allow updating tx network upgrades

* Fix unit tests for txs

* Remove `println`

* Move test-only tx methods out of the default impl

* Add a test for checking consensus branch ids

* Simplify some tests

* Docs formatting

* Update zebra-consensus/src/transaction/check.rs

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* Add `effectiveVersion` to txs

* Refactor the consensus branch ID check

* Update zebra-consensus/src/error.rs

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>

* Refactor the consensus branch ID check

* Remove `effective_version`

* Refactor tests for consensus branch ID check

---------

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2024-12-05 15:06:17 +00:00
.cargo
.github build(deps): bump the devops group across 1 directory with 5 updates (#9061) 2024-12-04 15:17:33 +00:00
book fix links in release templates (#9050) 2024-11-22 12:15:06 +00:00
docker add(ci): Check that dependencies have all been published to crates.io on release PRs (#8992) 2024-11-27 15:49:12 +00:00
grafana
supply-chain build(deps): bump the prod group across 1 directory with 18 updates (#8958) 2024-10-25 17:33:11 +00:00
tower-batch-control chore: Release v2.0.1 (#8979) 2024-10-30 11:41:41 -03:00
tower-fallback chore: Fix clippy lints (#9062) 2024-11-29 23:15:20 +00:00
zebra-chain add(consensus): Check consensus branch ids in tx verifier (#9063) 2024-12-05 15:06:17 +00:00
zebra-consensus add(consensus): Check consensus branch ids in tx verifier (#9063) 2024-12-05 15:06:17 +00:00
zebra-grpc chore: Release v2.0.1 (#8979) 2024-10-30 11:41:41 -03:00
zebra-network change(diagnostics): Updates error messages to include inner error types (#9066) 2024-12-04 18:45:10 +00:00
zebra-node-services change(mempool): Return verification result after attempting to insert transactions in the mempool (#9067) 2024-12-04 13:53:06 +00:00
zebra-rpc change(rpc): Update `getblock` RPC to more closely match zcashd (#9006) 2024-12-02 14:58:34 +00:00
zebra-scan chore: Fix clippy lints (#9062) 2024-11-29 23:15:20 +00:00
zebra-script chore: Release v2.0.1 (#8979) 2024-10-30 11:41:41 -03:00
zebra-state change(diagnostics): Updates error messages to include inner error types (#9066) 2024-12-04 18:45:10 +00:00
zebra-test fix(test): Update the reference Sapling treestate (#9051) 2024-11-22 12:15:01 +00:00
zebra-utils change(rpc): Update `getblock` RPC to more closely match zcashd (#9006) 2024-12-02 14:58:34 +00:00
zebrad change(diagnostics): Updates error messages to include inner error types (#9066) 2024-12-04 18:45:10 +00:00
.codespellrc ignore some directories in codespell checks (#8953) 2024-10-21 19:31:19 +00:00
.dockerignore
.firebaserc
.gitattributes
.gitignore feat(tests): Move the RPC tests framework from zcashd (#8866) 2024-09-20 16:36:20 +00:00
CHANGELOG.md chore: update CHANGELOG to better convey the 2.0.0 issue (#9007) 2024-11-18 11:36:35 +00:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md chore: Update the PR template (#8591) 2024-06-15 14:28:14 +00:00
Cargo.lock chore: Release v2.0.1 (#8979) 2024-10-30 11:41:41 -03:00
Cargo.toml change(deps): Use ECC deps with activation height for NU6 (#8978) 2024-10-29 20:33:44 -03:00
LICENSE-APACHE Update copyright year to 2024 (#8134) 2024-01-05 07:59:14 +00:00
LICENSE-MIT Update copyright year to 2024 (#8134) 2024-01-05 07:59:14 +00:00
README.md chore: Update docs (#8970) 2024-10-25 14:56:12 +00:00
SECURITY.md
clippy.toml
codecov.yml
deny.toml chore: Update `Cargo.lock` (#8969) 2024-10-25 19:36:17 +00:00
firebase.json
katex-header.html
openapi.yaml feat(rpc): Add more fields to `getmininginfo` call (#8860) 2024-09-18 11:05:25 +00:00
prometheus.yaml
release.toml config, docs: update hardcoded users (#8710) 2024-07-22 17:00:32 +00:00
rust-toolchain.toml Adds rust-toolchain.toml (#8985) 2024-11-01 09:23:42 +00:00

README.md

Zebra logotype


Integration Tests CI OSes Continuous Delivery codecov Build docs License

About

Zebra is a Zcash full-node written in Rust.

Zebra implements all the features required to reach Zcash network consensus, and the network stack is interoperable with zcashd. Here are some benefits of Zebra.

Zebra validates blocks and transactions, but needs extra software to generate them:

  • To generate transactions, run Zebra with lightwalletd.
  • To generate blocks, use a mining pool or miner with Zebra's mining JSON-RPCs. Currently Zebra can only send mining rewards to a single fixed address. To distribute rewards, use mining software that creates its own distribution transactions, a light wallet or the zcashd wallet.

Please join us on Discord if you'd like to find out more or get involved!

Getting Started

You can run Zebra using our Docker image or you can build it manually. Please see the System Requirements section in the Zebra book for system requirements.

Docker

This command will run our latest release, and sync it to the tip:

docker run zfnd/zebra:latest

For more information, read our Docker documentation.

Manual Build

Building Zebra requires Rust, libclang, and a C++ compiler.

Zebra is tested with the latest stable Rust version. Earlier versions are not supported or tested. Any Zebra release can start depending on new features in the latest stable Rust.

Around every 6 weeks, we release a new Zebra version.

Below are quick summaries for installing the dependencies on your machine.

General instructions for installing dependencies

  1. Install cargo and rustc.

  2. Install Zebra's build dependencies:

    • libclang is a library that might have different names depending on your package manager. Typical names are libclang, libclang-dev, llvm, or llvm-dev.
    • clang or another C++ compiler: g++ (all platforms) or Xcode (macOS).
    • protoc

[!NOTE] Zebra uses the --experimental_allow_proto3_optional flag with protoc during compilation. This flag was introduced in Protocol Buffers v3.12.0 released in May 16, 2020, so make sure you're not using a version of protoc older than 3.12.

Dependencies on Arch

sudo pacman -S rust clang protobuf

Note that the package clang includes libclang as well as the C++ compiler.

Once the dependencies are in place, you can build and install Zebra:

cargo install --locked zebrad

You can start Zebra by

zebrad start

Refer to the Installing Zebra and Running Zebra sections in the book for enabling optional features, detailed configuration and further details.

Documentation

The Zcash Foundation maintains the following resources documenting Zebra:

User support

For bug reports please open a bug report ticket in the Zebra repository.

Alternatively by chat, Join the Zcash Foundation Discord Server and find the #zebra-support channel.

We maintain a list of known issues in the Troubleshooting section of the book.

Security

Zebra has a responsible disclosure policy, which we encourage security researchers to follow.

License

Zebra is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT.

Some Zebra crates are distributed under the MIT license only, because some of their code was originally from MIT-licensed projects. See each crate's directory for details.