Go to file
Arya eb1d129fea
fix(test): Fixes bugs in the lightwalletd integration tests (#9052)
* Fixes bug in send transaction test

* fixes new bug in send_transaction_test

* Removes unused `load_transactions_from_future_blocks` and factors out code for sending transactions to its own fn

* corrects tx count updates to exclude coinbase txs

* fixes formatting

* Calls zebra's sendrawtransaction method if lwd's send_transaction() return an error for more detailed error info

* removes instrument

* avoids panic when a future block has only a coinbase transaction

* fixes check for gossip log (only happens when 10 txs have been added

* fixes a concurrency bug, adds more detailed errors.

* removes unnecessary wait_for_stdout calls and fixes condition for early return

* Fixes issue around missing stdout line

* Fixes bug around expected tx ids and removes outdated TODO

* Fixes issue with expected ZF funding stream address balance in post-NU6 chains

* fixes the rest of wallet_grpc_test

* Update zebrad/src/components/mempool/downloads.rs

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

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2024-12-11 14:52:59 +00:00
.cargo
.github Release v2.1.0 (#9072) 2024-12-06 18:28:56 +00:00
book Release v2.1.0 (#9072) 2024-12-06 18:28:56 +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 build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
tower-fallback build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-chain build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-consensus build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-grpc build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-network build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-node-services build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-rpc build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-scan build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-script build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-state build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-test build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebra-utils build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
zebrad fix(test): Fixes bugs in the lightwalletd integration tests (#9052) 2024-12-11 14:52:59 +00:00
.codespellrc
.dockerignore
.firebaserc
.gitattributes
.gitignore
CHANGELOG.md Release v2.1.0 (#9072) 2024-12-06 18:28:56 +00:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Cargo.lock build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
Cargo.toml change(deps): Use ECC deps with activation height for NU6 (#8978) 2024-10-29 20:33:44 -03:00
LICENSE-APACHE
LICENSE-MIT
README.md
SECURITY.md
clippy.toml
codecov.yml
deny.toml build(deps): bump the prod group across 1 directory with 22 updates (#9065) 2024-12-07 04:27:09 +00:00
firebase.json
katex-header.html
openapi.yaml
prometheus.yaml
release.toml
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.