Arya
a280b60ea3
fixes call to renamed `future_blocks` test fn
2024-12-12 20:18:53 -05:00
Arya
839cbaba13
Merge remote-tracking branch 'origin/main' into index-tx-loc-by-spent-out-loc
2024-12-12 20:17:17 -05:00
dependabot[bot]
568b25e590
build(deps): bump the prod group with 10 updates ( #9077 )
...
* build(deps): bump the prod group with 10 updates
Bumps the prod group with 10 updates:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.21` | `4.5.23` |
| [chrono](https://github.com/chronotope/chrono ) | `0.4.38` | `0.4.39` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.41.1` | `1.42.0` |
| [tokio-stream](https://github.com/tokio-rs/tokio ) | `0.1.16` | `0.1.17` |
| [tower](https://github.com/tower-rs/tower ) | `0.4.13` | `0.5.1` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `2.0.3` | `2.0.6` |
| [tracing-subscriber](https://github.com/tokio-rs/tracing ) | `0.3.18` | `0.3.19` |
| [prost](https://github.com/tokio-rs/prost ) | `0.13.3` | `0.13.4` |
| [primitive-types](https://github.com/paritytech/parity-common ) | `0.12.2` | `0.13.1` |
| [tokio-util](https://github.com/tokio-rs/tokio ) | `0.7.12` | `0.7.13` |
Updates `clap` from 4.5.21 to 4.5.23
- [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/clap_complete-v4.5.21...clap_complete-v4.5.23 )
Updates `chrono` from 0.4.38 to 0.4.39
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.38...v0.4.39 )
Updates `tokio` from 1.41.1 to 1.42.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.1...tokio-1.42.0 )
Updates `tokio-stream` from 0.1.16 to 0.1.17
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.16...tokio-stream-0.1.17 )
Updates `tower` from 0.4.13 to 0.5.1
- [Release notes](https://github.com/tower-rs/tower/releases )
- [Commits](https://github.com/tower-rs/tower/compare/tower-0.4.13...tower-0.5.1 )
Updates `thiserror` from 2.0.3 to 2.0.6
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.3...2.0.6 )
Updates `tracing-subscriber` from 0.3.18 to 0.3.19
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.18...tracing-subscriber-0.3.19 )
Updates `prost` from 0.13.3 to 0.13.4
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Changelog](https://github.com/tokio-rs/prost/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.13.3...v0.13.4 )
Updates `primitive-types` from 0.12.2 to 0.13.1
- [Commits](https://github.com/paritytech/parity-common/commits/primitive-types-v0.13.1 )
Updates `tokio-util` from 0.7.12 to 0.7.13
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.12...tokio-util-0.7.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: tokio-stream
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tower
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: prost
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: primitive-types
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
...
Signed-off-by: dependabot[bot] <support@github.com>
* downgrade tower and primitive-types
---------
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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-12-11 16:29:44 +00:00
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
dependabot[bot]
be50f7ce83
build(deps): bump the prod group across 1 directory with 22 updates ( #9065 )
...
* build(deps): bump the prod group across 1 directory with 22 updates
Bumps the prod group with 21 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap ) | `4.5.20` | `4.5.21` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.6.0` | `2.7.0` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.214` | `1.0.215` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.41.0` | `1.41.1` |
| [tower](https://github.com/tower-rs/tower ) | `0.4.13` | `0.5.1` |
| [thiserror](https://github.com/dtolnay/thiserror ) | `1.0.65` | `2.0.3` |
| [tracing-error](https://github.com/tokio-rs/tracing ) | `0.2.0` | `0.2.1` |
| [tracing](https://github.com/tokio-rs/tracing ) | `0.1.40` | `0.1.41` |
| [metrics](https://github.com/metrics-rs/metrics ) | `0.24.0` | `0.24.1` |
| [thread-priority](https://github.com/iddm/thread-priority ) | `1.1.0` | `1.2.0` |
| [sentry](https://github.com/getsentry/sentry-rust ) | `0.32.3` | `0.35.0` |
| [inferno](https://github.com/jonhoo/inferno ) | `0.11.21` | `0.12.0` |
| [hyper](https://github.com/hyperium/hyper ) | `1.5.0` | `1.5.1` |
| [bytes](https://github.com/tokio-rs/bytes ) | `1.8.0` | `1.9.0` |
| [indicatif](https://github.com/console-rs/indicatif ) | `0.17.8` | `0.17.9` |
| [insta](https://github.com/mitsuhiko/insta ) | `1.41.0` | `1.41.1` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.132` | `1.0.133` |
| [tempfile](https://github.com/Stebalien/tempfile ) | `3.13.0` | `3.14.0` |
| [primitive-types](https://github.com/paritytech/parity-common ) | `0.12.2` | `0.13.1` |
| [elasticsearch](https://github.com/elastic/elasticsearch-rs ) | `8.5.0-alpha.1` | `8.16.0-alpha.1` |
| [reqwest](https://github.com/seanmonstar/reqwest ) | `0.11.27` | `0.12.9` |
Updates `clap` from 4.5.20 to 4.5.21
- [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/clap_complete-v4.5.20...clap_complete-v4.5.21 )
Updates `indexmap` from 2.6.0 to 2.7.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.6.0...2.7.0 )
Updates `serde` from 1.0.214 to 1.0.215
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.214...v1.0.215 )
Updates `tokio` from 1.41.0 to 1.41.1
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.0...tokio-1.41.1 )
Updates `tower` from 0.4.13 to 0.5.1
- [Release notes](https://github.com/tower-rs/tower/releases )
- [Commits](https://github.com/tower-rs/tower/compare/tower-0.4.13...tower-0.5.1 )
Updates `thiserror` from 1.0.65 to 2.0.3
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.65...2.0.3 )
Updates `tracing-error` from 0.2.0 to 0.2.1
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-error-0.2.0...tracing-error-0.2.1 )
Updates `tracing` from 0.1.40 to 0.1.41
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.40...tracing-0.1.41 )
Updates `metrics` from 0.24.0 to 0.24.1
- [Changelog](https://github.com/metrics-rs/metrics/blob/main/release.toml )
- [Commits](https://github.com/metrics-rs/metrics/compare/metrics-v0.24.0...metrics-v0.24.1 )
Updates `thread-priority` from 1.1.0 to 1.2.0
- [Commits](https://github.com/iddm/thread-priority/commits )
Updates `sentry` from 0.32.3 to 0.35.0
- [Release notes](https://github.com/getsentry/sentry-rust/releases )
- [Changelog](https://github.com/getsentry/sentry-rust/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-rust/compare/0.32.3...0.35.0 )
Updates `inferno` from 0.11.21 to 0.12.0
- [Changelog](https://github.com/jonhoo/inferno/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jonhoo/inferno/compare/v0.11.21...v0.12.0 )
Updates `hyper` from 1.5.0 to 1.5.1
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v1.5.0...v1.5.1 )
Updates `bytes` from 1.8.0 to 1.9.0
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.8.0...v1.9.0 )
Updates `indicatif` from 0.17.8 to 0.17.9
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.8...0.17.9 )
Updates `insta` from 1.41.0 to 1.41.1
- [Release notes](https://github.com/mitsuhiko/insta/releases )
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitsuhiko/insta/compare/1.41.0...1.41.1 )
Updates `serde_json` from 1.0.132 to 1.0.133
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.132...v1.0.133 )
Updates `tempfile` from 3.13.0 to 3.14.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.13.0...v3.14.0 )
Updates `primitive-types` from 0.12.2 to 0.13.1
- [Commits](https://github.com/paritytech/parity-common/commits/primitive-types-v0.13.1 )
Updates `elasticsearch` from 8.5.0-alpha.1 to 8.16.0-alpha.1
- [Release notes](https://github.com/elastic/elasticsearch-rs/releases )
- [Commits](https://github.com/elastic/elasticsearch-rs/commits )
Updates `reqwest` from 0.11.27 to 0.12.9
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.27...v0.12.9 )
Updates `syn` from 2.0.85 to 2.0.90
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.85...2.0.90 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tower
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: prod
- dependency-name: tracing-error
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: metrics
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: thread-priority
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: sentry
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: inferno
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: hyper
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: insta
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: primitive-types
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: elasticsearch
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: prod
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod
...
Signed-off-by: dependabot[bot] <support@github.com>
* downgrade tower, add denies
---------
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>
2024-12-07 04:27:09 +00:00
Arya
179aaa4c4f
Release v2.1.0 ( #9072 )
...
* 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>
2024-12-06 18:28:56 +00:00
Arya
1cf249c665
Updates checkpoints ( #9071 )
2024-12-05 23:10:20 +00:00
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
Conrado Gouvea
a3bb1e2e05
change(diagnostics): Updates error messages to include inner error types ( #9066 )
...
* add: add consensus validation reason to error messages
* add additional instances
2024-12-04 18:45:10 +00:00
dependabot[bot]
eb9e1f150a
build(deps): bump the devops group across 1 directory with 5 updates ( #9061 )
...
Bumps the devops group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [codecov/codecov-action](https://github.com/codecov/codecov-action ) | `4.6.0` | `5.0.7` |
| [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) | `45.0.3` | `45.0.4` |
| [docker/metadata-action](https://github.com/docker/metadata-action ) | `5.5.1` | `5.6.1` |
| [docker/build-push-action](https://github.com/docker/build-push-action ) | `6.9.0` | `6.10.0` |
| [docker/scout-action](https://github.com/docker/scout-action ) | `1.15.0` | `1.15.1` |
Updates `codecov/codecov-action` from 4.6.0 to 5.0.7
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v4.6.0...v5.0.7 )
Updates `tj-actions/changed-files` from 45.0.3 to 45.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/v45.0.3...v45.0.4 )
Updates `docker/metadata-action` from 5.5.1 to 5.6.1
- [Release notes](https://github.com/docker/metadata-action/releases )
- [Commits](https://github.com/docker/metadata-action/compare/v5.5.1...v5.6.1 )
Updates `docker/build-push-action` from 6.9.0 to 6.10.0
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0 )
Updates `docker/scout-action` from 1.15.0 to 1.15.1
- [Release notes](https://github.com/docker/scout-action/releases )
- [Commits](https://github.com/docker/scout-action/compare/v1.15.0...v1.15.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: devops
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
- dependency-name: docker/metadata-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: devops
- dependency-name: docker/scout-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: devops
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-04 15:17:33 +00:00
Gustavo Valverde
e72c0fe6f2
refactor(mergify): streamline queue and priority rules ( #9068 )
...
- Removed deprecated actions and simplified default queue rules.
- Adjusted batch sizes for urgent and batched queues.
- Consolidated priority rules to enhance clarity and efficiency.
- Updated conditions for moving pull requests to different queues based on labels and reviews.
2024-12-04 14:52:28 +00:00
Arya
7561e1ef26
change(mempool): Return verification result after attempting to insert transactions in the mempool ( #9067 )
...
* change(mempool): Return verification result after attempting to insert transactions in the mempool (#8901 )
* respond with mempool verification result after a transaction has been inserted or has failed to be inserted into the mempool
* returns mempool verification errors early, and fixes handling for cancellations or timeouts.
* Adds a comment in test warning against code reuse with buffered services.
* De-duplicates handling for timeout errors
2024-12-04 13:53:06 +00:00
Conrado Gouvea
d1ae441ab9
change(rpc): Update `getblock` RPC to more closely match zcashd ( #9006 )
...
* rpc: align getblock with zcashd behaviour
* Removes handling for verbosity = 3 in getblock method, adds finalorchardroot field, removes unnecessary state request. (#9008 )
* align final(sapling|orchard)root with zcashd behaviour
* fix test
* Apply suggestions from code review
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
* restore getblock docs; remove unneeded TODOs
* Update zebra-rpc/src/methods.rs
Co-authored-by: Arya <aryasolhi@gmail.com>
* get rif of cloning self (#9044 )
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-12-02 14:58:34 +00:00
Arya
e15184d39b
chore: Fix clippy lints ( #9062 )
...
* Allows non-local impls for abscissa derive macros and fixes other clippy lints.
* Fixes formatting
2024-11-29 23:15:20 +00:00
ar
f71c897774
Document need for having an indexed cached state and use a multi-threaded tokio runtime in has_spending_transaction_ids test
2024-11-29 16:34:13 -05:00
Arya
8cfb61f52c
add(ci): Check that dependencies have all been published to crates.io on release PRs ( #8992 )
...
* Adds a test to check for crates in the Cargo.lock file that are being pulled in from a git source.
* add `check_no_git_refs_in_cargo_lock` to CI
* try skip instead of exclude
---------
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2024-11-27 15:49:12 +00:00
Alfredo Garcia
0af0742613
upgrade min protocol versions for all network kinds ( #9058 )
2024-11-27 15:49:07 +00:00
Gustavo Valverde
802a243385
fix(mergify): align `build` job name across workflows ( #9055 )
2024-11-27 15:49:02 +00:00
Arya
1ebb1a5c1a
updates db column families table
2024-11-22 14:51:26 -05:00
Arya
527737ab0d
Fixes lint, avoids reading coinbase transactions from disk
2024-11-22 14:51:26 -05:00
Arya
f57c784f57
Replaces dropping cf with deleting range of all items to avoid a panic when trying to open the db with that column family.
2024-11-22 14:51:26 -05:00
Arya
e6a8654c44
- adds build metadata when writing db version file, if any.
...
- adds the build metadata to the db version file before adding indexes.
- deletes indexes when running without the `indexer` feature
2024-11-22 14:51:26 -05:00
Arya
661316cf5b
condenses imports
2024-11-22 14:51:26 -05:00
Arya
769e024609
stops tracking new indexes in non-finalized state when indexer feature is unselected
2024-11-22 14:51:26 -05:00
Arya
2585fd97bc
stops tracking new indexes in finalized state when feature is unselected
2024-11-22 14:51:26 -05:00
Arya
39ede86120
Adds `indexer` compilation feature in zebra-state and build metadata in db format version file
2024-11-22 14:51:26 -05:00
Arya
c1848103a6
Avoids returning genesis coinbase tx hash when indexes are missing
2024-11-22 14:51:26 -05:00
Arya
2db4dd5a2b
fixes docs lint and skips test when there is no cached state
2024-11-22 14:51:26 -05:00
Arya
5ae6ff1277
adds a few log messages to the acceptance test, reduces frequency of logs for progress updates
2024-11-22 14:51:26 -05:00
Arya
57c3cf90c3
Updates acceptance test to check non-finalized state
2024-11-22 14:51:26 -05:00
Arya
22c92899d5
Updates Zebra book with the latest changes to the rocks db column families
2024-11-22 14:51:26 -05:00
Arya
933556b160
Adds variant docs to zebra_state::request::Spend enum
2024-11-22 14:51:26 -05:00
Arya
e20e7912a6
Adds acceptance test for checking that the finalized state has spending transaction ids
2024-11-22 14:51:26 -05:00
Arya
ecb345aebb
refactor db format upgrade and prepare_nullifiers_batch() to use ZebraDb instead of DiskDb, checks cancel_receiver before every db operation
2024-11-22 14:51:26 -05:00
ar
511ff82396
Renames new read state request to `SpendingTransactionId` and updates its type to a `Spend` enum
2024-11-22 14:51:26 -05:00
Arya
a02b307353
updates nullifiers column families to include revaling transaction locations in db format upgrade
2024-11-22 14:51:26 -05:00
Arya
69035327e2
adds revealing tx ids for nullifiers in finalized and non-finalized states
2024-11-22 14:51:26 -05:00
Arya
2c6bac8f13
adds db format upgrade for spent outpoints -> tx hash
2024-11-22 14:51:26 -05:00
Arya
c238bbba48
import TypedColumnFamily from `finalized_state` instead of from the crate.
2024-11-22 14:51:26 -05:00
Arya
3b287bf3de
Clarifies `spent_utxos` field docs, fixes an assertion
2024-11-22 14:51:26 -05:00
Arya
f6dcfbfa4b
Updates snapshots, removes outdated TODOs, moves a TODO.
2024-11-22 14:51:26 -05:00
Arya
00b2eef74d
Adds a `TransactionIdForSpentOutPoint` ReadRequest and a `TransactionId` ReadResponse
2024-11-22 14:51:26 -05:00
Arya
445a929efb
adds a `spending_transaction_hash()` read fn for the new column family
2024-11-22 14:51:26 -05:00
Arya
5281565713
add spending tx ids for spent outpoints to non-finalized chains
2024-11-22 14:51:26 -05:00
Arya
e9b39306c9
Adds new column family for [spent_out_loc] -> [spending_tx_loc] with a read method and an update to `prepare_spending_transparent_tx_ids_batch()` for maintaining it when committing blocks to the finalized state.
...
Adds TODOs for remaining production changes needed for issue #8837 .
2024-11-22 14:51:26 -05:00
Alfredo Garcia
4f0746a613
fix links in release templates ( #9050 )
2024-11-22 12:15:06 +00:00
Marek
5f2f97209e
fix(test): Update the reference Sapling treestate ( #9051 )
...
* Update the reference Sapling treestate
Zebra's treestate serialization differs from `zcashd` in the following
way:
`zcashd` omits the serialization of empty trailing ommers, while Zebra
doesn't. This means that `zcashd` serializes the Sapling treestate for
height 419_201 as
019eb30778ddeea84c72e69e07a1689f3c8def3dc0a1939f0edcbe47279069d9310002000150715810d52caf35471d10feb487213fbd95ff209122225b7b65d27a7fb1a44d
Whereas Zebra serializes it as
019eb30778ddeea84c72e69e07a1689f3c8def3dc0a1939f0edcbe47279069d931001f000150715810d52caf35471d10feb487213fbd95ff209122225b7b65d27a7fb1a44d0000000000000000000000000000000000000000000000000000000000
Serialization Format
====================
The serialized treestate consists of optional, hex-encoded, 32-byte
hashes. If the hash is not present, it is serialized as byte 0, i.e.,
`0x00`. If the hash is present, it is prefixed by byte 1, i.e. `0x01`.
The first two hashes in the serialized treestate are the treestate's
left and right leaves. These are followed by the serialized length of
the vector of ommers. This length is serialized as 1, 3, 5, or 9 bytes.
If the length is less than 253, it is serialized as a single byte. The
length is then followed by the serialized ommers.
We can now parse the first string, produced by `zcashd`:
- `0119eb30778ddeea84c72e69e07a1689f3c8def3dc0a1939f0edcbe47279069d931`
is the serialized left leaf,
- `00` is the serialized right leaf,
- `02` is the serialized length of the vector of ommers,
- `00` is the serialized first ommer,
- `0150715810d52caf35471d10feb487213fbd95ff209122225b7b65d27a7fb1a44d`
is the serialized second ommer.
And the second one, produced by Zebra:
- `0119eb30778ddeea84c72e69e07a1689f3c8def3dc0a1939f0edcbe47279069d931`
is the serialized left leaf,
- `00` is the serialized right leaf,
- `1f` is the serialized length of the vector of ommers,
- `00` is the serialized first ommer,
- `0150715810d52caf35471d10feb487213fbd95ff209122225b7b65d27a7fb1a44d`
is the serialized second ommer
- `0000000000000000000000000000000000000000000000000000000000` are the
remaining 29 serialized ommers.
Note that both serializations represent the same treestate.
* Remove a new line char
2024-11-22 12:15:01 +00:00
Gustavo Valverde
3983428ac4
fix(ci): run most lighwalletd tests correctly ( #9038 )
...
A LWD test was expecting the `ZEBRA_TEST_LIGHTWALLETD` to be set, but this variable is needed for all LWD tests and not specifically for `lightwalletd_integration`.
We had to rename this variable on a buggy `elif` statement in our Docker entrypoint.
This was avoiding most LWD tests to run correctly.
2024-11-19 11:41:57 +00:00
Alfredo Garcia
17648cc6e1
remove `scan-start-where-left-test` from CI ( #9026 )
2024-11-19 10:25:37 +01:00
Arya
1e46914131
add(rpc): Adds `getblockheader` RPC method ( #8967 )
...
* Adds getblockheader RPC method
* Updates snapshots, adds hash/height/next_block_hash fields to verbose response
* updates getblock snapshot
* updates getblockheader response type to hex-encode fields, adds ToHex impl for sapling::tree::Root, adds snapshot and vector tests for new RPC method, adds snapshots.
* rustfmt
* fixes snapshots, matches zcashd more closely
* fixes vectors test
* updates lwd failure messages (probably doesn't matter, but seems better to handle it now than risk debugging it later)
* fixes getblock_rpc test, fixes/reverses finalsaplingroot field byte-order.
* fixes vector test, addresses remaining differences with zcashd (except the `chainwork` field), updates snapshots, and avoids a possible panic when there's a chain reorg between state queries.
* Adds a comment noting that the `relative_to_network()` method was copied from zcashd
* Apply suggestions from code review
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
---------
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-11-18 12:16:27 +00:00