teor
e6c3b87872
Stop panicking on shutdown in the syncer and network init ( #7104 )
2023-07-02 20:08:11 +00:00
teor
322cbec817
fix(hang): Stop blocking some Zebra futures for up to a minute using a CPU busy-loop, Credit: Ziggurat Team ( #6763 ), james_katz ( #7000 ) ( #7103 )
...
* Stop busy-waiting in a Future for 45 seconds every minute
* Use the correct elapsed time calculation
* Add some TODOs for making the structure of the loop and wait times clearer
2023-06-30 16:58:05 +00:00
dependabot[bot]
5eea111922
build(deps): bump tokio from 1.28.2 to 1.29.0 ( #7094 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.2 to 1.29.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.2...tokio-1.29.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-30 02:58:00 +00:00
dependabot[bot]
2a3197221e
build(deps): bump num_cpus from 1.15.0 to 1.16.0 ( #7106 )
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 23:19:25 +00:00
teor
aa8489373e
Use release images for zcash-params downloads ( #7097 )
2023-06-29 20:19:15 +00:00
Alfredo Garcia
455779c833
build(deps): Bump indexmap, toml and serde_json ( #7100 )
...
* bump toml, indexmap and serde_json all together
* add duplicated indexmap dep to deny.toml
2023-06-29 20:18:52 +00:00
teor
256e4cd2ce
Use a heart image with a compatible licence ( #7102 )
2023-06-29 16:01:51 +00:00
dependabot[bot]
a6731d16f6
build(deps): bump bitflags from 2.3.2 to 2.3.3 ( #7083 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.2...2.3.3 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 01:28:00 +00:00
dependabot[bot]
560d5f7de9
build(deps): bump tj-actions/changed-files from 37.0.3 to 37.0.4 ( #7092 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 37.0.3 to 37.0.4.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v37.0.3...v37.0.4 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 20:46:27 +00:00
Conrado Gouvea
6ab451c660
make logo fit 80 columns ( #7095 )
2023-06-28 20:07:30 +00:00
teor
9112aa43d0
change(release): Split release checklist into a ticket and PR template ( #7088 )
...
* Split release checklist into a ticket and PR template
* Fix quoting
2023-06-28 09:46:59 +00:00
Gustavo Valverde
8c90f65391
refactor(docker): allow more flexible zebra configuration ( #7045 )
...
* fix(docker): use `entrypoint.sh` as default for users
* ref(entrypoint): allow more flexible configurations
This changes allow users to:
- Mount their own configuration file
- Allow for Zebra to be exposed outside the container or not
- Allow the user to turn off sync
- Allow to enable `metrics` and `tracing`, exposing them or not
Having the `-x` option prints variable expasions, so we don't have to echo each value.
* chore(docker): remove unused ARGs from the Dockerfile
ARGs are not available at build time, so we don't require this ARGs as their ENV variables counterparts are being set in the `entrypoint`, at runtime.
* revert: keep old naming
* fix: renaming mistake :)
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* fix(docker): revert some breaking changes
* imp(docker): allow more flexibility with FEATURES config
* chore(docker): remove confusing port on `EXPOSE`
* chore(docker): remove unused command
* fix(docker): handle quotes while building the conf file
---------
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-06-28 02:36:07 +00:00
teor
c2bc799dd9
Use correct name for CD build patch job ( #7073 )
2023-06-28 02:35:50 +00:00
teor
fc9baf92dd
Make CD docker tests more flexible ( #7077 )
2023-06-28 02:35:20 +00:00
teor
62b4fa21a2
change(docker): Replace the zcash-params Dockerfile build with a zebrad binary copy ( #7054 )
...
* Replace the zcash-params Dockerfile build with a zebrad binary copy
* Update zcash-params workflow conditions
2023-06-28 02:34:46 +00:00
dependabot[bot]
caf9a0925f
build(deps): bump hyper from 0.14.26 to 0.14.27 ( #7082 )
...
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.14.26 to 0.14.27.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.27/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.26...v0.14.27 )
---
updated-dependencies:
- dependency-name: hyper
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-28 00:29:07 +00:00
teor
f8e26347a0
Log a zebra-network task cancel on shutdown, rather than panicking ( #7078 )
2023-06-27 19:42:04 +00:00
teor
6311cfbfb3
fix(log): Only show the Zebra logo & intro for the `start` command ( #7075 )
...
* Only show the intro for the `start` command
* Also disable the log file intro text
2023-06-27 17:38:57 +00:00
teor
5324e5afd2
add(tests): Add snapshot tests for sprout database formats ( #7057 )
...
* Add methods for loading entire column families from the database
* Add a method that loads all the sprout trees from the database
* Add snapshot tests for sprout note commitment trees
* Add round-trip proptests for tree root database serialization
* Add a manual sprout note commitment tree database serialization snapshot test
* Add tests for 1,2,4,8 note commitments in a tree
* Remove redundant "rand" package rename in dependencies
* Randomly cache roots rather than only caching even roots
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-06-27 15:32:30 +00:00
Marek
1f1d04b547
change(state): Refactor the structure of finalizable blocks ( #7035 )
...
* Add and use `FinalizableBlock`
This commit adds `FinalizableBlock`, and uses it instead of
`ContextuallyVerifiedBlockWithTrees` in `commit_finalized_direct()`
* Use `ContextuallyVerifiedBlockWithTrees`
This commit passes `ContextuallyVerifiedBlockWithTrees` instead of
passing separate `finalized`, `history_tree` and `note_commitment_trees`
when storing blocks in the finalized state.
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* add docs to new methods
* fix existing doc
* rename `ContextuallyVerifiedBlockWithTrees` to `SemanticallyVerifiedBlockWithTrees`
* Refactor docs
* Refactor comments
* Add missing docs, fix typo
* Fix rustfmt
---------
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-06-27 08:58:14 +00:00
teor
941be2965c
Replace a chain length assertion with a NotReadyToBeCommitted error ( #7072 )
2023-06-27 06:50:35 +00:00
Conrado Gouvea
3af03c3971
print a Zebra logo and some text if stderr is terminal ( #6945 )
...
* print a Zebra logo and some text in progress bar mode
* add network to printed line, add heart to logo
* print logo and message regardless of progress-bar; document how logo was generated
2023-06-27 03:35:07 +00:00
dependabot[bot]
015a970e16
build(deps): bump tj-actions/changed-files from 36.4.1 to 37.0.3 ( #7065 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 36.4.1 to 37.0.3.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v36.4.1...v37.0.3 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 21:30:10 +00:00
dependabot[bot]
a6f35afe37
build(deps): bump clap from 4.3.6 to 4.3.8 ( #7066 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.6 to 4.3.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.6...v4.3.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 19:43:29 +00:00
teor
76a7ff45a9
fix(deps): Replace openssl with rustls in tests and experimental features ( #7047 )
...
* Remove openssl dependency and prevent it coming back
* Put the arguments in the right place
* Put comment in the right place
* Add a default-docker feature to zebrad and use it in workflows and Docker files
* Fix a comment typo
* Make sure that Docker production builds don't use openssl
* Rename feature to default-release-binaries
2023-06-26 05:44:19 +00:00
teor
f455baaa6e
Rename a CD job with the same name as a CI job ( #7063 )
2023-06-26 01:12:29 +00:00
teor
9229424ebb
add(ci): Run release builds and production Docker image tests on pull requests ( #7055 )
...
* Update the workflow run conditions for CI docker tests
* Run release builds and release Docker image tests on pull requests
* Remove the manual docker test from the release checklist
* Fix workflow syntax
* Use the right kind of quotes
2023-06-25 23:24:10 +00:00
dependabot[bot]
0e0ee8d1bd
build(deps): bump clap from 4.3.5 to 4.3.6 ( #7059 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.5...v4.3.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 22:17:36 +00:00
dependabot[bot]
b234b681fe
build(deps): bump clap from 4.3.4 to 4.3.5 ( #7038 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.4...v4.3.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 18:28:11 +00:00
dependabot[bot]
7e6162a043
build(deps): bump itertools from 0.10.5 to 0.11.0 ( #7050 )
...
* build(deps): bump itertools from 0.10.5 to 0.11.0
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.5 to 0.11.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* add itertools as a duplicated dep
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2023-06-23 18:27:49 +00:00
dependabot[bot]
835e7a88f0
build(deps): bump insta from 1.29.0 to 1.30.0 ( #7051 )
...
Bumps [insta](https://github.com/mitsuhiko/insta ) from 1.29.0 to 1.30.0.
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitsuhiko/insta/compare/1.29.0...1.30.0 )
---
updated-dependencies:
- dependency-name: insta
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 01:00:27 +00:00
teor
31bc46bb2a
Add deny.toml update details to release-checklist.md ( #7042 )
2023-06-22 07:47:02 +00:00
dependabot[bot]
d3c2a9a31c
build(deps): bump tj-actions/changed-files from 36.4.0 to 36.4.1 ( #7024 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 36.4.0 to 36.4.1.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v36.4.0...v36.4.1 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-22 04:17:07 +00:00
teor
8861de6a7c
fix(docker): Stop resetting the `cargo-chef` cache in the Dockerfile ( #6934 )
...
* Fix Dockerfile cache use
* Remove cache-breaking COPY commands
* Use git to only reset files modified by cargo-chef
* Copy .git and sources before cargo chef cook
* Update .dockerignore to include .git
* Don't use .git
* Use rsync instead of git
* Maybe COPY is needed
* Actually copy changed files using rsync
* Actually copy the files using the correct rsync syntax
* Remove ls commands from Dockerfile
2023-06-22 04:16:50 +00:00
dependabot[bot]
53cb0a7fa2
build(deps): bump peter-evans/dockerhub-description from 3.4.1 to 3.4.2 ( #7023 )
...
Bumps [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description ) from 3.4.1 to 3.4.2.
- [Release notes](https://github.com/peter-evans/dockerhub-description/releases )
- [Commits](https://github.com/peter-evans/dockerhub-description/compare/v3.4.1...v3.4.2 )
---
updated-dependencies:
- dependency-name: peter-evans/dockerhub-description
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-21 22:19:32 +00:00
teor
3d2c5ef290
fix(concurrency): Use Arc::into_inner() to avoid potential concurrency issues, needs Rust 1.70 ( #7032 )
...
* Use Arc::into_inner() to avoid potential concurrency issues
* Remove some outdated clippy lint workarounds (fixed in Rust 1.66)
* Update the required Rust version to 1.70
2023-06-21 20:44:53 +00:00
Marek
006c2ae42b
change(state): Refactor the structure of verified blocks ( #7025 )
...
* Refactor `CheckpointVerifiedBlock`
This commit turns `CheckpointVerifiedBlock` into a wrapper of
`SemanticallyVerifiedBlock` since both structs have the same fields.
* Refactor `ContextuallyVerifiedBlockWithTrees`
This commit uses `SemanticallyVerifiedBlock` in
`ContextuallyVerifiedBlockWithTrees` instead of
`CheckpointVerifiedBlock`.
2023-06-21 16:58:11 +00:00
teor
343a683cea
cleanup(test): Make test debugging output more readable ( #7027 )
...
* Fix some debug impls to use hex rather than u8 arrays
* Hide extremely long debug data in proptests
2023-06-21 15:02:05 +00:00
teor
17e14d9349
Use correct cargo release manifest key name ( #7028 )
...
Avoids an "unused manifest key: metadata" warning
2023-06-21 12:38:35 +00:00
teor
d8c29809f4
Refactor terminal color checks, fix force_color on panic logs ( #6997 )
2023-06-21 10:17:26 +00:00
Deirdre Connolly
44b7a8bde5
change(rename): Update missed tower-batch-control renames ( #7011 )
2023-06-20 22:36:00 +00:00
dependabot[bot]
067e32b380
build(deps): bump tj-actions/changed-files from 36.3.0 to 36.4.0 ( #7004 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 36.3.0 to 36.4.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v36.3.0...v36.4.0 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 15:19:36 +00:00
teor
ac4a34231b
Change network upgrade wording in release-checklist.md ( #7010 )
2023-06-20 11:04:32 +00:00
teor
56a76385f0
git ls-tree --full-tree -r --name-only HEAD | xargs sed -i -e 's/router_verifier/block_verifier_router/g' ( #6998 )
...
cargo fmt --all
2023-06-20 07:11:04 +00:00
teor
795d40a003
change(readme): Install from crates.io not git in the README, automate release version replacements ( #6977 )
...
* Install from crates.io not git
* Move git instructions to install.md
* Add versions back to install.md
* Automate release replacements in Cargo.toml
* Re-add h4 to re-enable links to those sections
* Remove release replacements from zebra/Cargo.toml
* Add release replacements to zebrad/Cargo.toml
* Put the toml table in the right place
* Try another place in Cargo.toml
* Let's try again without "package."
* Remove duplicate release metadata from Cargo.toml
* Apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
---------
Co-authored-by: Marek <mail@marek.onl>
2023-06-20 07:10:40 +00:00
Arya
b40fc9b032
change(network): Configurable maximum connections per IP ( #7013 )
...
* Adds config field
* adds new generated config
* Lint
* fixes config_tests
2023-06-20 05:11:45 +00:00
Arya
a588965b94
change(commands): Ignore error from loading config if running the 'generate' or 'download' commands ( #7014 )
...
* ignore error when reading config for generate cmd
* Adds comments.
* ignore load config errs for download cmd too
* Fix comment wording
---------
Co-authored-by: teor <teor@riseup.net>
2023-06-20 05:11:23 +00:00
dependabot[bot]
cd8dddffe5
build(deps): bump reviewdog/action-actionlint from 1.37.0 to 1.37.1 ( #7003 )
...
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint ) from 1.37.0 to 1.37.1.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases )
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.37.0...v1.37.1 )
---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 02:42:39 +00:00
dependabot[bot]
2d35feb177
build(deps): bump Swatinem/rust-cache from 2.4.0 to 2.5.0 ( #7002 )
...
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache ) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/Swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Swatinem/rust-cache/compare/v2.4.0...v2.5.0 )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 02:42:25 +00:00
teor
c3f0f53256
refactor(app): De-duplicate and fix version handling code ( #6996 )
...
* De-duplicate app_version and user_agent code, rename to build_version
* Make RPC testnet flag forward-compatible with additional testnets
* Fix RPC tests with new argument
* Use "modified" rather than "dirty" for uncommitted changes in build metadata
* Split the vergen version into its own function
2023-06-20 02:42:06 +00:00