Commit Graph

5331 Commits

Author SHA1 Message Date
Arya 6a447be718 use sync task 2024-06-20 12:49:35 -04:00
Alfredo Garcia dc4af52a4a add `env-filter` feature to `tracing-subscriber` dependency 2024-06-20 12:34:08 -04:00
Alfredo Garcia f3db0431b7 remove required feature 2024-06-20 12:34:08 -04:00
Alfredo Garcia ca89df20d9 allow birthday in config 2024-06-20 12:34:08 -04:00
Alfredo Garcia f79a41fecc update arguments 2024-06-20 12:34:08 -04:00
Alfredo Garcia 67f1b0d79f add a new `zebra-scanner` binary 2024-06-20 12:34:08 -04:00
Arya 2743051630 Fixes a test bug 2024-06-20 12:32:47 -04:00
Arya f0b5ee5248 Updates method docs 2024-06-20 10:16:59 -04:00
Arya 8fb798b2c0 Updates `POLL_DELAY` documentation 2024-06-20 10:15:10 -04:00
Arya e64287662b
Merge branch 'main' into non-final-read-state 2024-06-19 19:31:58 -04:00
Arya 15feed173d Fixes test on Windows, applies suggestions from code review 2024-06-19 19:28:21 -04:00
Marek 95e4d0973c
chore: Bump `zcash_primitives`, `orchard` and `zcash_proofs` (#8615)
* Bump ECC deps

* Remove customizable HRPs

* Update changelog

* Update CHANGELOG.md

Co-authored-by: Arya <aryasolhi@gmail.com>

* Update `Cargo.lock`

* Bump `orchard` from to 0.8 in `zebra-consensus`

---------

Co-authored-by: Arya <aryasolhi@gmail.com>
2024-06-19 16:31:27 +00:00
dependabot[bot] 2d86f5d1aa
build(deps): bump curve25519-dalek in the cargo group (#8625)
Bumps the cargo group with 1 update: [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek).


Updates `curve25519-dalek` from 4.1.2 to 4.1.3
- [Release notes](https://github.com/dalek-cryptography/curve25519-dalek/releases)
- [Commits](https://github.com/dalek-cryptography/curve25519-dalek/compare/curve25519-4.1.2...curve25519-4.1.3)

---
updated-dependencies:
- dependency-name: curve25519-dalek
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 12:48:15 +00:00
Conrado Gouvea 3650442ad8
zebra_script: update to new zcash_script callback API (#8566)
* zebra_script: change to use new zcash_script callback API

* add precomputation

* cleanups

* use released zcash_script

* fix clippy error

* Apply suggestions from code review

Co-authored-by: Marek <mail@marek.onl>

* improve docs

* use tuple instead of two Option params

---------

Co-authored-by: Marek <mail@marek.onl>
2024-06-19 12:48:12 +00:00
Arya 28902fa397 removes syncer and rpc-syncer features 2024-06-17 22:35:33 -04:00
Arya d1b25b40ef Merge branch 'main' into non-final-read-state 2024-06-17 17:14:18 -04:00
Arya 737c2e5044 Fixes lints 2024-06-17 17:13:34 -04:00
Arya fd1ab3b51e Adds docs / comments, moves HexData out from behind the getblocktemplate-rpcs feature flag, moves test behind the mining feature flag. 2024-06-17 17:07:01 -04:00
Arya bc378071d4 Fixes compilation/test issues 2024-06-17 16:38:55 -04:00
Marek c6f575319d
fix: Stop using `displaydoc` (#8614)
* Stop using `displaydoc`

* Fix comment alignment

This commit is unrelated to the solution in this branch. There's a new
lint that produces a warning when lists in comments are not aligned well.
2024-06-17 15:10:41 +00:00
Marek 8f27d972fa
chore: Update the PR template (#8591)
* Fix TOC in `CONTRIBUTING.md`

* Refactor PR template

* Edit the PR reviewer's checklist

* Unrelated: fix spelling

* Simplify the checklists
2024-06-15 14:28:14 +00:00
Alfredo Garcia 791e863029
fix(openapi): Remove trailing characters in descriptions (#8597)
* remove trailing characters in descriptions

* add changelog entry
2024-06-15 12:38:32 +00:00
Alfredo Garcia 0e6eee373e
fix typos (#8612) 2024-06-14 18:29:21 +00:00
Alfredo Garcia f2bc02726c
use constant (#8611) 2024-06-14 16:21:44 +00:00
Arya e13202db44 fixes lint 2024-06-13 23:13:22 -04:00
Arya ce5f7edc09 run test without feature 2024-06-13 23:07:37 -04:00
Arya ac62baee05
Merge branch 'main' into non-final-read-state 2024-06-13 23:06:34 -04:00
Arya 112294f143 checks for chain tip changes in test 2024-06-13 23:05:43 -04:00
Arya f18344ff79 checks that there isn't a tip change until the best chain changes 2024-06-13 22:24:57 -04:00
Arya d31526e0b3 Checks synced read state for all of the expected blocks 2024-06-13 22:17:54 -04:00
Arya 9d2d1df6b2 Updates acceptance test to how forks are handled 2024-06-13 22:03:56 -04:00
Arya c9319e0f51 Moves disk IO to blocking tasks 2024-06-13 18:09:19 -04:00
Marek 736f5f5415
change(scan): Remove support for starting the scanner at `zebrad` startup (#8594)
* Remove code that starts the scanner

* Update CHANGELOG

* Disable tests of the scanner

* Disable scanning tests in CI

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2024-06-12 18:39:00 +00:00
Arya 1b5f9426f9
change(state): Add an init function for a standalone `ReadStateService` (#8595)
* Adds an init_read_only() fn in zebra-state

* moves elasticsearch initialization to `FinalizedState::new_with_debug()`

* Updates callers of `FinalizedState::{new, new_with_debug}` to pass a bool to try enabling elasticsearch

---------

Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2024-06-12 13:35:13 +00:00
Gustavo Valverde 139e1c3ed7
feat(build): use Docker Build Cloud for image build (#8374)
* feat(build): use Docker Build Cloud for image build

* fix(build): secrets, runner and conditional login

* ref(build): avoid using an external cache with Docker Build Cloud

* fix(build): `buildx` setup must be after registry login

* fix: merge

* fix(login): always login to Docker

* fix(build): remove extra build steps
2024-06-12 12:18:18 +00:00
Arya a1ad80f75b Fixes a pre-flush sync issue by using a secondary db instead of a read-only db 2024-06-12 01:58:43 -04:00
Arya 302facf78e adds a last_chain_tip_hash and uses a FuturesOrdered for getblock requests 2024-06-12 00:17:05 -04:00
Marek 158d6879fc
fix: General conditional compilation attributes (#8602)
* Remove general conditional compilation flags

See https://blog.rust-lang.org/2024/05/06/check-cfg.html

The conditional compilation flags for tor were superfluous as we can
make do fine with using only features.

* Update changelog

* Add `tokio_unstable` to to `unexpected_cfgs`

* Update changelog

* Fix `tokio_unstable` in `zebrad`
2024-06-12 01:04:30 +00:00
Arya dc514b82e2 Tests that `ChainTipChange` is updated when the non-finalized best chain grows 2024-06-10 21:22:03 -04:00
Gustavo Valverde 55c69929c5
ref(ci): Use a single CI workflow for tests (#8575)
* ref(ci): Use a single CI workflow for tests

This is an initial implementation to solve the re-building of our Docker image, which is being built multiple times by our Github Actions.

This is meant to fix -> devops: Build CI Docker runs twice for every PR #7816

* fix(patch): use correct name reference

* chore: reduce diff with correct sentence

* Apply suggestions from code review

Co-authored-by: Marek <mail@marek.onl>

* Apply suggestions from code review

Co-authored-by: Marek <mail@marek.onl>

* fix(rules): revert job names, to avoid creating an extra rule

* Update .github/workflows/ci-tests.patch.yml

Co-authored-by: Marek <mail@marek.onl>

---------

Co-authored-by: Marek <mail@marek.onl>
2024-06-10 22:51:33 +00:00
Arya 0d1f434bdf adds TODOs for testing 2024-06-06 23:38:56 -04:00
Arya 0d35fc3259 Adds stub for acceptance test(s) and removes outdated TODO 2024-06-06 22:51:11 -04:00
Arya 5470979bce Avoids resetting the non-finalized state when there's an error getting a block unless it has the missing block error code. 2024-06-06 22:36:11 -04:00
Arya 8d246c3207 Returns boxed errors from RpcRequestClient methods instead of color_eyre type 2024-06-06 22:35:14 -04:00
Arya d57c50aab1 reduces disk IO while waiting for the a new chain tip & updates the chain tip sender when the finalized tip has changed. 2024-06-06 21:46:52 -04:00
Arya f94bd417a1 moves, removes, updates, or addresses TODOs 2024-06-06 21:46:52 -04:00
Arya 995811e0d2 Adds a non-finalized read state syncer to zebra-rpc 2024-06-06 21:46:52 -04:00
Arya 33a3ccffe4 Updates callers of `FinalizedState::{new, new_with_debug}` to pass a bool to try enabling elasticsearch 2024-06-06 21:46:41 -04:00
Arya 281668bd82 moves elasticsearch initialization to `FinalizedState::new_with_debug()` 2024-06-06 20:24:13 -04:00
Arya 26c0e5dca8 Adds an init_read_only() fn in zebra-state 2024-06-06 20:18:58 -04:00