teor
d3ce022ecc
change(utils): Add a direct connection mode to zebra-checkpoints ( #6516 )
...
* Rename variables so it's clearer what they do
* Fully document zebra-checkpoints arguments
* Remove some outdated references to zcashd
* Add a json-conversion feature for converting JSON to valid Heights
* Simplify zebra-checkpoints code using conversion methods
* Track the last checkpoint height rather than the height gap
* Move all the CLI-specific code into a single function
* Remove cfg(feature) from the test RPC client API
* Move the RpcRequestClient into zebra-node-services
* Fix the case of RpcRequestClient
* Add transport and addr arguments to zebra-checkpoints
* Make zebra-checkpoints support both CLI and direct JSON-RPC connections
* Fix RpcRequestClient compilation
* Add a suggestion for zcashd authentication failures
* Document required features
* Handle differences in CLI & direct parameter and response formats
* Replace a custom function with an existing dependency function
* Add a checkpoint list test for minimum height gaps
2023-04-26 23:35:53 +00:00
dependabot[bot]
fb3fec0b93
build(deps): bump bitflags from 2.1.0 to 2.2.1 ( #6561 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.1.0 to 2.2.1.
- [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.1.0...2.2.1 )
---
updated-dependencies:
- dependency-name: bitflags
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-04-25 16:09:04 +00:00
Alfredo Garcia
85534ab027
fix(errors): Handle randomness generation and invalid random values as errors in cryptographic code ( #6385 )
...
* add error handling
* change error name
* Error types oriented around the primary types we expose in the zebra-chain API
* Fix Ok spelling
* orchard::note::new(): return NoteError if randomness produces invalid Pallas point
---------
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
Co-authored-by: teor <teor@riseup.net>
2023-04-20 17:49:21 +00:00
Arya
9820780a35
v1.0.0-rc.7 release ( #6542 )
...
* updates changelog and bumps versions
* updates README.md
* Updates Rust version in readme
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Removes the initial label from entries
* Updates testnet checkpoints
* update mainnet checkpoints
---------
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-19 03:25:51 +00:00
teor
f2133c9fff
Increase ZIP-401 mempool cost thresholds for Orchard transactions ( #6521 )
...
* Increase ZIP-401 mempool cost thresholds for Orchard transactions
* Copy documentation from ZIP-401
2023-04-18 10:11:58 +00:00
teor
3ba334bf20
change(deps): Upgrade shared dependencies to match `zcashd` 5.5.0 ( #6536 )
...
* Cleanup module docs and imports for sapling::arbitrary
* Upgrade dependencies shared with zcashd 5.5.0
```sh
cargo upgrade --workspace << EOF
bellman
bls12_381
group
halo2
halo2_proofs
jubjub
orchard
redjubjub
zcash_address
zcash_note_encryption
zcash_primitives
zcash_proofs
EOF
```
* Replace orchard::from_bytes_wide() with ff::from_uniform_bytes()
* Revert "disable test (#6285 )" to re-enable verify_generated_halo2_proofs
This reverts commit 4d4accc0b9
.
2023-04-18 10:11:38 +00:00
dependabot[bot]
351a7b6a33
build(deps): bump zcash_address from 0.2.0 to 0.2.1 ( #6530 )
...
Bumps [zcash_address](https://github.com/zcash/librustzcash ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/zcash/librustzcash/releases )
- [Commits](https://github.com/zcash/librustzcash/compare/zcash_address-0.2.0...zcash_address-0.2.1 )
---
updated-dependencies:
- dependency-name: zcash_address
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-04-18 03:44:03 +00:00
Arya
6fdd02220e
fix(rpc): Omit transactions with transparent coinbase spends that are immature at the next block height from block templates ( #6510 )
...
* Adds `maturity_height` to VerifiedUnminedTx
Filters out transactions that are invalid at next_block_height in getblocktemplate method
* Adds unit testing
* rustfmt
* rejects txs with immature coinbase spends from mempool
* Condenses fns for transparent coinbase spend check
* Updates calls to VerifiedUnminedTx::new()
* Update zebra-chain/src/transparent/utxo.rs
* Applies suggestions from code review
2023-04-18 03:43:39 +00:00
teor
166526a088
feat(ui): Add a terminal-based progress bar to Zebra ( #6235 )
...
* Implement Display and to_string() for NetworkUpgrade
* Add a progress-bar feature to zebrad
* Add the progress bar writer to the tracing component
* Add a block progress bar transmitter
* Correctly shut down the progress bar, and shut it down on an interrupt
* Make it clearer that the progress task never exits
* Add a config for writing logs to a file
* Add a progress-bar feature to zebra-network
* Add a progress bar for the address book size
* Add progress bars for never attempted and failed peers
* Add an optional limit and label to connection counters
* Add open connection progress bars
* Improve CheckpointList API and CheckpointVerifier debugging
* Add checkpoint index and checkpoint queue progress bars
* Security: Limit the number of non-finalized chains tracked by Zebra
* Make some NonFinalizedState methods available with proptest-impl
* Add a non-finalized chain count progress bar
* Track the last fork height for newly forked chains
* Add a should_count_metrics to Chain
* Add a display method for PartialCumulativeWork
* Add a progress bar for each chain fork
* Add a NonFinalizedState::disable_metrics() method and switch to using it
* Move metrics out of Chain because we can't update Arc<Chain>
* Fix: consistently use best chain order when searching chains
* Track Chain progress bars in NonFinalizedState
* Display work as bits, not a multiple of the target difficulty
* Handle negative fork lengths by reporting "No fork"
* Correctly disable unused fork bars
* clippy: rewrite using `match _.cmp(_) { ... }`
* Initial mempool progress bar implementation
* Update Cargo.lock
* Add the actual transaction size as a description to the cost bar
* Only show mempool progress bars after first activation
* Add queued and rejected mempool progress bars
* Clarify cost note is actual size
* Add tracing.log_file config and progress-bar feature to zebrad docs
* Derive Clone for Chain
* Upgrade to howudoin 0.1.2 and remove some bug workarounds
* Directly call the debug formatter to Display a Network
Co-authored-by: Arya <aryasolhi@gmail.com>
* Rename the address count metric to num_addresses
Co-authored-by: Arya <aryasolhi@gmail.com>
* Simplify reverse checkpoint lookup
Co-authored-by: Arya <aryasolhi@gmail.com>
* Simplify progress bar shutdown code
Co-authored-by: Arya <aryasolhi@gmail.com>
* Remove unused MIN_TRANSPARENT_TX_MEMPOOL_SIZE
* Document that the progress task runs forever
* Fix progress log formatting
* If progress-bar is on, log to a file by default
* Create missing directories for log files
* Add file security docs for running Zebra with elevated permissions
* Document automatic log file, spell progress-bar correctly
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2023-04-13 08:42:17 +00:00
Arya
403c074502
fix(chain): Validate header versions when serializing blocks ( #6475 )
...
* checks block header version when serializing
* fixes test panic
* adds docs
* test block header (de)serialization
2023-04-12 04:54:02 +00:00
dependabot[bot]
e6bd34d0bf
build(deps): bump serde from 1.0.159 to 1.0.160 ( #6480 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.159 to 1.0.160.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160 )
---
updated-dependencies:
- dependency-name: serde
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-04-12 03:07:44 +00:00
dependabot[bot]
eb606c84b1
build(deps): bump bitflags from 2.0.2 to 2.1.0 ( #6470 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.0.2 to 2.1.0.
- [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.0.2...2.1.0 )
---
updated-dependencies:
- dependency-name: bitflags
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-04-07 09:34:35 +00:00
dependabot[bot]
9b1f555c05
build(deps): bump serde_with from 2.3.1 to 2.3.2 ( #6469 )
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.1...v2.3.2 )
---
updated-dependencies:
- dependency-name: serde_with
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-04-06 18:05:25 +00:00
dependabot[bot]
3b259b1746
build(deps): bump futures from 0.3.27 to 0.3.28 ( #6442 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.27 to 0.3.28.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.27...0.3.28 )
---
updated-dependencies:
- dependency-name: futures
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-04-03 04:00:53 +00:00
Marek
2a48d4cf25
change(chain): Refactor the handling of height differences ( #6330 )
...
* Unify the `impl`s of `Sub` and `Add` for `Height`
* Adjust tests for `Height` subtraction
* Use `Height` instead of `i32`
* Use `block:Height` in RPC tests
* Use `let .. else` statement
Co-authored-by: Arya <aryasolhi@gmail.com>
* Update zebra-consensus/src/block/subsidy/general.rs
* Refactor the handling of height differences
* Remove a redundant comment
* Update zebrad/src/components/sync/progress.rs
Co-authored-by: Arya <aryasolhi@gmail.com>
* Update progress.rs
* impl TryFrom<u32> for Height
* Make some test assertions clearer
* Refactor estimate_up_to()
* Restore a comment that was accidentally removed
* Document when estimate_distance_to_network_chain_tip() returns None
* Change HeightDiff to i64 and make Height.sub(Height) return HeightDiff (no Option)
* Update chain tip estimates for HeightDiff i64
* Update subsidy for HeightDiff i64
* Fix some height calculation test edge cases
* Fix the funding stream interval calculation
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: teor <teor@riseup.net>
2023-03-29 23:06:31 +00:00
dependabot[bot]
a38d6c6e9a
build(deps): bump tokio from 1.26.0 to 1.27.0 ( #6426 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.26.0...tokio-1.27.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-03-29 01:50:47 +00:00
dependabot[bot]
536e3a1785
build(deps): bump serde from 1.0.158 to 1.0.159 ( #6424 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.158 to 1.0.159.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.158...v1.0.159 )
---
updated-dependencies:
- dependency-name: serde
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-03-28 18:35:53 +00:00
dependabot[bot]
96e5b541a4
build(deps): bump proptest from 0.10.1 to 1.1.0 ( #6415 )
...
* build(deps): bump proptest from 0.10.1 to 1.1.0
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 0.10.1 to 1.1.0.
- [Release notes](https://github.com/proptest-rs/proptest/releases )
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/proptest-rs/proptest/compare/v0.10.1...v1.1.0 )
---
updated-dependencies:
- dependency-name: proptest
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Add a quick-error duplicate dependency exception
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: teor <teor@riseup.net>
2023-03-28 04:13:26 +00:00
Arya
083ddea58a
change(docs): Replaces XXX with TODO ( #6417 )
...
* Replaces XXX with TODO:
* Updates block/tests
2023-03-28 04:13:04 +00:00
Deirdre Connolly
c3273e4a61
v1.0.0-rc.6 release ( #6314 )
...
* Package and version bumps
* Updated mainnet checkpoints
* Update test-checkpoints.txt
* Bump zebrad rust-version to 1.68
* update the changelog
* add suggestions
Co-authored-by: teor <teor@riseup.net>
* fix typo
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* add suggestions from review
Co-authored-by: teor <teor@riseup.net>
* add suggestion
Co-authored-by: teor <teor@riseup.net>
---------
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-24 01:24:29 +00:00
dependabot[bot]
45a96b5adc
build(deps): bump serde from 1.0.156 to 1.0.158 ( #6358 )
...
* build(deps): bump serde from 1.0.156 to 1.0.158
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.156 to 1.0.158.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.156...v1.0.158 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Make MERKLE_DEPTH into a u8 to avoid a spurious serde_derive warning
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: teor <teor@riseup.net>
2023-03-22 17:12:34 +00:00
dependabot[bot]
8003116882
build(deps): bump bitflags from 2.0.1 to 2.0.2 ( #6381 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.0.1 to 2.0.2.
- [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.0.1...2.0.2 )
---
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-03-22 07:31:55 +00:00
dependabot[bot]
99d39caabb
build(deps): bump zcash_primitives from 0.10.1 to 0.10.2 ( #6355 )
...
Bumps [zcash_primitives](https://github.com/zcash/librustzcash ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/zcash/librustzcash/releases )
- [Commits](https://github.com/zcash/librustzcash/compare/zcash_primitives-0.10.1...zcash_primitives-0.10.2 )
---
updated-dependencies:
- dependency-name: zcash_primitives
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-03-22 02:49:49 +00:00
dependabot[bot]
d06b0b15a1
build(deps): bump bitflags from 1.3.2 to 2.0.1 ( #6346 )
...
* build(deps): bump bitflags from 1.3.2 to 2.0.1
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 1.3.2 to 2.0.1.
- [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/1.3.2...2.0.1 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* make bitflag v2 work with zebra
* add doc suggestions
Co-authored-by: Marek <mail@marek.onl>
---------
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: Marek <mail@marek.onl>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-22 02:49:21 +00:00
dependabot[bot]
a97a9752d7
build(deps): bump thiserror from 1.0.39 to 1.0.40 ( #6359 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.39...1.0.40 )
---
updated-dependencies:
- dependency-name: thiserror
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-03-20 19:07:11 +00:00
dependabot[bot]
dbdf617124
build(deps): bump serde from 1.0.154 to 1.0.156 ( #6316 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.154 to 1.0.156.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.154...v1.0.156 )
---
updated-dependencies:
- dependency-name: serde
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-03-15 23:10:09 +00:00
Pili Guerra
87f9e02dbf
Fix tipo. Credit: @rex4539 ( #6328 )
2023-03-15 19:40:54 +00:00
dependabot[bot]
360c974829
build(deps): bump chrono from 0.4.23 to 0.4.24 ( #6300 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.23 to 0.4.24.
- [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.23...v0.4.24 )
---
updated-dependencies:
- dependency-name: chrono
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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2023-03-15 17:29:10 +00:00
dependabot[bot]
404478374b
build(deps): bump serde_with from 2.3.0 to 2.3.1 ( #6308 )
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: serde_with
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-03-15 15:19:32 +00:00
dependabot[bot]
c75fb63385
build(deps): bump futures from 0.3.26 to 0.3.27 ( #6299 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.26 to 0.3.27.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.26...0.3.27 )
---
updated-dependencies:
- dependency-name: futures
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-03-14 22:21:15 +00:00
dependabot[bot]
93c702a7e8
build(deps): bump reddsa from 0.4.0 to 0.5.0 ( #6293 )
...
Bumps [reddsa](https://github.com/ZcashFoundation/reddsa ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/ZcashFoundation/reddsa/releases )
- [Changelog](https://github.com/ZcashFoundation/reddsa/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ZcashFoundation/reddsa/compare/0.4.0...0.5.0 )
---
updated-dependencies:
- dependency-name: reddsa
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-03-13 21:14:08 +00:00
Deirdre Connolly
47cf0f475f
Halborn 2023 02 20 ( #6297 )
...
* Limit version user agents to 256 bytes, rather than 2MB, needs failure tests
* Limit all inv messages to 50,000 entries, existing tests cover this
* Limit reject message strings based on network protocol, needs success and failure tests
* Catch up as fast as possible if inventory rotation is delayed, existing tests cover this
* Truncate inv channel hashes to 1000, needs success and failure tests
* Limit inv registry size to 4 MB, needs over-limit tests for inv and addr
* Test size constraints on version user agent, reject command, and reject reason (#13 )
* Test inventory registry memory limits for hashes and peers (#14 )
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
---------
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: Arya <aryasolhi@gmail.com>
2023-03-13 18:10:15 +00:00
dependabot[bot]
a76597ee07
build(deps): bump serde_with from 2.2.0 to 2.3.0 ( #6292 )
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: serde_with
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-03-11 16:00:19 +00:00
dependabot[bot]
f2cef85794
build(deps): bump zcash_primitives from 0.10.0 to 0.10.1 ( #6276 )
...
Bumps [zcash_primitives](https://github.com/zcash/librustzcash ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/zcash/librustzcash/releases )
- [Commits](https://github.com/zcash/librustzcash/commits )
---
updated-dependencies:
- dependency-name: zcash_primitives
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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-10 20:01:04 +00:00
dependabot[bot]
542f838acd
build(deps): bump serde from 1.0.152 to 1.0.154 ( #6284 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.154.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.154 )
---
updated-dependencies:
- dependency-name: serde
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-03-10 12:35:12 +00:00
dependabot[bot]
c1d4c24490
build(deps): bump serde-big-array from 0.5.0 to 0.5.1 ( #6267 )
...
Bumps [serde-big-array](https://github.com/est31/serde-big-array ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/est31/serde-big-array/releases )
- [Commits](https://github.com/est31/serde-big-array/compare/v0.5.0...v0.5.1 )
---
updated-dependencies:
- dependency-name: serde-big-array
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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-10 00:31:49 +00:00
dependabot[bot]
fc96bfe370
build(deps): bump rayon from 1.6.1 to 1.7.0 ( #6268 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.6.1...rayon-core-v1.7.0 )
---
updated-dependencies:
- dependency-name: rayon
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-03-07 14:22:51 +00:00
dependabot[bot]
5f5b5352fa
build(deps): bump thiserror from 1.0.38 to 1.0.39 ( #6266 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.39 )
---
updated-dependencies:
- dependency-name: thiserror
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-03-06 22:36:30 +00:00
dependabot[bot]
a1105c0672
build(deps): bump tokio from 1.25.0 to 1.26.0 ( #6263 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.25.0...tokio-1.26.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-03-02 20:51:06 +00:00
dependabot[bot]
639cc766eb
build(deps): bump incrementalmerkletree from 0.3.0 to 0.3.1 ( #6258 )
...
Bumps [incrementalmerkletree](https://github.com/zcash/incrementalmerkletree ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/zcash/incrementalmerkletree/releases )
- [Changelog](https://github.com/zcash/incrementalmerkletree/blob/incrementalmerkletree-v0.3.1/CHANGELOG.md )
- [Commits](https://github.com/zcash/incrementalmerkletree/compare/incrementalmerkletree-v0.3.0...incrementalmerkletree-v0.3.1 )
---
updated-dependencies:
- dependency-name: incrementalmerkletree
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-03-01 20:44:35 +00:00
teor
98c634bbee
fix(deps): Remove unused dependencies, and check for them in CI ( #6216 )
...
* Remove unused dependencies
* Check for newly unused dependencies in CI
* Use the correct grep command
* Always show cargo machete output
* Ignore cargo machete exit status, use grep instead
* Use if instead of && and subshells
* Invert if logic
2023-02-26 23:42:36 +00:00
Marek
9d2b912840
Release v1.0.0-rc.5 ( #6213 )
...
* Bump updated crates
* Bump crates that depend on updated crates
* Bump the user agent
* Bump `README.md`
* Bump `docker.md`
* Remove closed known issues from "README.md"
* Update `CHANGELOG.md`
* Apply suggestions from code review
Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: teor <teor@riseup.net>
* Remove the bump of `once_cell` from `CHANGELOG.md`
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-24 23:08:16 +00:00
teor
ec43d63ed2
change(log): Log a cute message for blocks that were mined by Zebra (off by default) ( #6098 )
...
* Mark Zebra coinbase transactions with extra coinbase data
* Log when we commit a block mined by Zebra to our state
* Reduce logging instrumentation during block writes
* Remove debug types in Zebra block log
* Add network and commit to write task logs
* Apply an allow-list before we log arbitrary user messages from blocks
* Rate-limit Zebra mined block logging to once every 1000 blocks
* Add mining configs for extra coinbase data and imitating zcashd, but don't use them yet
* Check CoinbaseData size limit when building transparent transactions
* Replace LIKE_ZCASHD constants with a config
* Take extra coinbase data from the configured string
* Update the zebrad configs in the tests with new config fields
2023-02-23 00:10:11 +00:00
Marek
83d038c067
feat(rpc): Implement the `z_validateaddress` RPC ( #6185 )
...
* Add the response type for `z_validateaddress`
* Add UAs to the address variants
* Remove a redundant TODO
* Impl `z_validateaddress`
* Add basic test vectors
* Add basic snapshots
* Remove a deprecated field from the RPC response
* Add basic snapshot data
* Check the semantic validity of UAs
* Refactor imports
* Refactor snapshot filenames
This PR removes the `.new` filename extensions from snapshots.
* Rename `address` to `unified_address`
2023-02-20 21:06:22 +00:00
Alfredo Garcia
31382d2a24
feat(rpc): Implement `z_listunifiedreceivers` ( #6171 )
...
* implement `z_listunifiedreceivers`
* add test vector
* add snapshots
* simplify sapling payment address
* send network argument to payment_address method
* use expect for impossible address errors
* remove network argument
* use already present network conversion
* add additional snapshot
* Derive common traits on the RPC struct
---------
Co-authored-by: teor <teor@riseup.net>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-20 12:22:37 +00:00
dependabot[bot]
d413790838
build(deps): bump serde-big-array from 0.4.1 to 0.5.0 ( #6188 )
...
Bumps [serde-big-array](https://github.com/est31/serde-big-array ) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/est31/serde-big-array/releases )
- [Commits](https://github.com/est31/serde-big-array/compare/v0.4.1...v0.5.0 )
---
updated-dependencies:
- dependency-name: serde-big-array
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-02-18 02:23:19 +00:00
teor
9452487c61
fix(state): Fix minute-long delays in block verification after a chain fork ( #6122 )
...
* Split Chain fields into sections
* Replace Chain.sprout_note_commitment_tree with a lookup method
* Add TODOs
* Show full debug info when tests fail because chains aren't equal
* Print sprout and sapling tree Nodes as hex when debugging
* Correctly revert temporary finalized tip trees and anchors
* Fix tests
* Refactor removal functions
* Replace the Chain.sapling_note_commitment_tree field with a lookup method
* Replace the Chain.orchard_note_commitment_tree field with a lookup method
* Replace the Chain.history_tree field with a lookup method and remove redundant code
* Update comments
* Ignore clippy::unwrap_in_result
* Remove redundant fork() Result
* Put conditional code in blocks
* fastmod history_tree_at_tip history_block_commitment_tree zebra-state
2023-02-13 21:44:31 +00:00
dependabot[bot]
4eb27dda06
build(deps): bump blake2b_simd from 1.0.0 to 1.0.1 ( #6143 )
...
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: blake2b_simd
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-02-13 02:30:07 +00:00
dependabot[bot]
ebe3a3e4b7
build(deps): bump blake2s_simd from 1.0.0 to 1.0.1 ( #6145 )
...
Bumps [blake2s_simd](https://github.com/oconnor663/blake2_simd ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases )
- [Commits](https://github.com/oconnor663/blake2_simd/compare/1.0.0...1.0.1 )
---
updated-dependencies:
- dependency-name: blake2s_simd
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-02-12 22:45:43 +00:00
teor
a8370a8eda
Remove unused impl ZcashDeserialize for Height ( #6139 )
2023-02-10 20:24:46 +00:00