Skip to content

Commit

Permalink
Release v2.1.0 (#9072)
Browse files Browse the repository at this point in the history
* Updates changelog, crate versions, end of support height, and docs.

* Update CHANGELOG.md

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

---------

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
  • Loading branch information
arya2 and conradoplg authored Dec 6, 2024
1 parent 1cf249c commit 179aaa4
Show file tree
Hide file tree
Showing 20 changed files with 135 additions and 96 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/scripts/release-crates-dry-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ fi
# We use the same commands as the [release drafter](https://github.com/ZcashFoundation/zebra/blob/main/.github/PULL_REQUEST_TEMPLATE/release-checklist.md#update-crate-versions)
# with an extra `--no-confirm` argument for non-interactive testing.
# Update everything except for alpha crates and zebrad:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc patch
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc beta

# Due to a bug in cargo-release, we need to pass exact versions for alpha crates:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.11
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.9
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.13
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.11

# Update zebrad:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch
Expand Down
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,45 @@ All notable changes to Zebra are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org).

## [Zebra 2.1.0](https://github.com/ZcashFoundation/zebra/releases/tag/v2.1.0) - 2024-12-06

This release adds a check to verify that V5 transactions in the mempool have the correct consensus branch ID;
Zebra would previously accept those and return a transaction ID (indicating success) even though they would
be eventually rejected by the block consensus checks. Similarly, Zebra also now returns an error when trying
to submit transactions that would eventually fail some consensus checks (e.g. double spends) but would also
return a transaction ID indicating success. The release also bumps
Zebra's initial minimum protocol version such that this release of Zebra will always reject connections with peers advertising
a network protocol version below 170,120 on Mainnet and 170,110 on Testnet instead of accepting those connections until Zebra's
chain state reaches the NU6 activation height.
The `getblock` RPC method has been updated and now returns some additional information
such as the block height (even if you provide a block hash) and other fields as supported
by the `getblockheader` RPC call.

### Breaking Changes

- Upgrade minimum protocol versions for all Zcash networks ([#9058](https://github.com/ZcashFoundation/zebra/pull/9058))

### Added

- `getblockheader` RPC method ([#8967](https://github.com/ZcashFoundation/zebra/pull/8967))
- `rust-toolchain.toml` file ([#8985](https://github.com/ZcashFoundation/zebra/pull/8985))

### Changed

- Updated `getblock` RPC to more closely match zcashd ([#9006](https://github.com/ZcashFoundation/zebra/pull/9006))
- Updated error messages to include inner error types (notably for the transaction verifier) ([#9066](https://github.com/ZcashFoundation/zebra/pull/9066))

### Fixed

- Validate consensus branch ids of mempool transactions ([#9063](https://github.com/ZcashFoundation/zebra/pull/9063))
- Verify mempool transactions with unmined inputs if those inputs are in the mempool to support TEX transactions ([#8857](https://github.com/ZcashFoundation/zebra/pull/8857))
- Wait until transactions have been added to the mempool before returning success response from `sendrawtransaction` RPC ([#9067](https://github.com/ZcashFoundation/zebra/pull/9067))

### Contributors

Thank you to everyone who contributed to this release, we couldn't make Zebra without you:
@arya2, @conradoplg, @cypherpepe, @gustavovalverde, @idky137, @oxarbitrage, @pinglanlu and @upbqdn

## [Zebra 2.0.1](https://github.com/ZcashFoundation/zebra/releases/tag/v2.0.1) - 2024-10-30

- Zebra now supports NU6 on Mainnet. This patch release updates dependencies
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4941,7 +4941,7 @@ dependencies = [

[[package]]
name = "tower-batch-control"
version = "0.2.41-beta.18"
version = "0.2.41-beta.19"
dependencies = [
"color-eyre",
"ed25519-zebra",
Expand All @@ -4964,7 +4964,7 @@ dependencies = [

[[package]]
name = "tower-fallback"
version = "0.2.41-beta.18"
version = "0.2.41-beta.19"
dependencies = [
"futures-core",
"pin-project",
Expand Down Expand Up @@ -6039,7 +6039,7 @@ dependencies = [

[[package]]
name = "zebra-chain"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"bitflags 2.6.0",
"bitflags-serde-legacy",
Expand Down Expand Up @@ -6104,7 +6104,7 @@ dependencies = [

[[package]]
name = "zebra-consensus"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"bellman",
"blake2b_simd",
Expand Down Expand Up @@ -6150,7 +6150,7 @@ dependencies = [

[[package]]
name = "zebra-grpc"
version = "0.1.0-alpha.9"
version = "0.1.0-alpha.10"
dependencies = [
"color-eyre",
"futures-util",
Expand All @@ -6172,7 +6172,7 @@ dependencies = [

[[package]]
name = "zebra-network"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"bitflags 2.6.0",
"byteorder",
Expand Down Expand Up @@ -6213,7 +6213,7 @@ dependencies = [

[[package]]
name = "zebra-node-services"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"color-eyre",
"jsonrpc-core",
Expand All @@ -6226,7 +6226,7 @@ dependencies = [

[[package]]
name = "zebra-rpc"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"base64 0.22.1",
"chrono",
Expand Down Expand Up @@ -6265,7 +6265,7 @@ dependencies = [

[[package]]
name = "zebra-scan"
version = "0.1.0-alpha.11"
version = "0.1.0-alpha.12"
dependencies = [
"bls12_381",
"chrono",
Expand Down Expand Up @@ -6311,7 +6311,7 @@ dependencies = [

[[package]]
name = "zebra-script"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"hex",
"lazy_static",
Expand All @@ -6323,7 +6323,7 @@ dependencies = [

[[package]]
name = "zebra-state"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"bincode",
"chrono",
Expand Down Expand Up @@ -6368,7 +6368,7 @@ dependencies = [

[[package]]
name = "zebra-test"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"color-eyre",
"futures",
Expand Down Expand Up @@ -6396,7 +6396,7 @@ dependencies = [

[[package]]
name = "zebra-utils"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
dependencies = [
"color-eyre",
"hex",
Expand Down Expand Up @@ -6427,7 +6427,7 @@ dependencies = [

[[package]]
name = "zebrad"
version = "2.0.1"
version = "2.1.0"
dependencies = [
"abscissa_core",
"atty",
Expand Down
2 changes: 1 addition & 1 deletion book/src/user/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ docker run -d --platform linux/amd64 \
### Build it locally

```shell
git clone --depth 1 --branch v2.0.1 https://github.com/ZcashFoundation/zebra.git
git clone --depth 1 --branch v2.1.0 https://github.com/ZcashFoundation/zebra.git
docker build --file docker/Dockerfile --target runtime --tag zebra:local .
docker run --detach zebra:local
```
Expand Down
4 changes: 2 additions & 2 deletions book/src/user/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To compile Zebra directly from GitHub, or from a GitHub release source archive:
```sh
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
git checkout v2.0.1
git checkout v2.1.0
```

3. Build and Run `zebrad`
Expand All @@ -89,7 +89,7 @@ target/release/zebrad start
### Compiling from git using cargo install

```sh
cargo install --git https://github.com/ZcashFoundation/zebra --tag v2.0.1 zebrad
cargo install --git https://github.com/ZcashFoundation/zebra --tag v2.1.0 zebrad
```

### Compiling on ARM
Expand Down
6 changes: 3 additions & 3 deletions tower-batch-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tower-batch-control"
version = "0.2.41-beta.18"
version = "0.2.41-beta.19"
authors = ["Zcash Foundation <zebra@zfnd.org>", "Tower Maintainers <team@tower-rs.com>"]
description = "Tower middleware for batch request processing"
# # Legal
Expand Down Expand Up @@ -43,10 +43,10 @@ rand = "0.8.5"

tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }
tokio-test = "0.4.4"
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.18" }
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.19" }
tower-test = "0.4.0"

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.42" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.43" }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
4 changes: 2 additions & 2 deletions tower-fallback/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tower-fallback"
version = "0.2.41-beta.18"
version = "0.2.41-beta.19"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "A Tower service combinator that sends requests to a first service, then retries processing on a second fallback service if the first service errors."
license = "MIT OR Apache-2.0"
Expand All @@ -24,4 +24,4 @@ tracing = "0.1.39"
[dev-dependencies]
tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.42" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.43" }
6 changes: 3 additions & 3 deletions zebra-chain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-chain"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "Core Zcash data structures"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -145,7 +145,7 @@ proptest-derive = { version = "0.5.0", optional = true }
rand = { version = "0.8.5", optional = true }
rand_chacha = { version = "0.3.1", optional = true }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.42", optional = true }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.43", optional = true }

[dev-dependencies]
# Benchmarks
Expand All @@ -168,7 +168,7 @@ rand_chacha = "0.3.1"

tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.42" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.43" }

[[bench]]
name = "block"
Expand Down
20 changes: 10 additions & 10 deletions zebra-consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-consensus"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "Implementation of Zcash consensus checks"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -63,13 +63,13 @@ orchard.workspace = true
zcash_proofs = { workspace = true, features = ["multicore" ] }
wagyu-zcash-parameters = "0.2.0"

tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.18" }
tower-batch-control = { path = "../tower-batch-control/", version = "0.2.41-beta.18" }
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.19" }
tower-batch-control = { path = "../tower-batch-control/", version = "0.2.41-beta.19" }

zebra-script = { path = "../zebra-script", version = "1.0.0-beta.42" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.42" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.42" }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.42" }
zebra-script = { path = "../zebra-script", version = "1.0.0-beta.43" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.43" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.43" }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.43" }

# prod feature progress-bar
howudoin = { version = "0.1.2", optional = true }
Expand All @@ -94,6 +94,6 @@ tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }
tracing-error = "0.2.0"
tracing-subscriber = "0.3.18"

zebra-state = { path = "../zebra-state", version = "1.0.0-beta.42", features = ["proptest-impl"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.42", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.42" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.43", features = ["proptest-impl"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.43", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.43" }
6 changes: 3 additions & 3 deletions zebra-grpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-grpc"
version = "0.1.0-alpha.9"
version = "0.1.0-alpha.10"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "Zebra gRPC interface"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -28,8 +28,8 @@ color-eyre = "0.6.3"

zcash_primitives.workspace = true

zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.42", features = ["shielded-scan"] }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.42" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.43", features = ["shielded-scan"] }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.43" }

[build-dependencies]
tonic-build = "0.12.3"
Expand Down
4 changes: 2 additions & 2 deletions zebra-network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-network"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
authors = ["Zcash Foundation <zebra@zfnd.org>", "Tower Maintainers <team@tower-rs.com>"]
description = "Networking code for Zebra"
# # Legal
Expand Down Expand Up @@ -83,7 +83,7 @@ howudoin = { version = "0.1.2", optional = true }
proptest = { version = "1.4.0", optional = true }
proptest-derive = { version = "0.5.0", optional = true }

zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.42", features = ["async-error"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.43", features = ["async-error"] }

[dev-dependencies]
proptest = "1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions zebra-node-services/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-node-services"
version = "1.0.0-beta.42"
version = "1.0.0-beta.43"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
description = "The interfaces of some Zebra node services"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -37,7 +37,7 @@ rpc-client = [
shielded-scan = []

[dependencies]
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.42" }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.43" }

# Optional dependencies

Expand Down
Loading

0 comments on commit 179aaa4

Please sign in to comment.