dependabot[bot]
6f8c98123e
build(deps): bump chrono from 0.4.24 to 0.4.25 ( #6775 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.24 to 0.4.25.
- [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.24...v0.4.25 )
---
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>
2023-05-30 12:57:25 +00:00
dependabot[bot]
604a96e9ad
build(deps): bump bs58 from 0.4.0 to 0.5.0 ( #6750 )
...
* build(deps): bump bs58 from 0.4.0 to 0.5.0
Bumps [bs58](https://github.com/Nullus157/bs58-rs ) from 0.4.0 to 0.5.0.
- [Changelog](https://github.com/Nullus157/bs58-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Nullus157/bs58-rs/compare/0.4.0...0.5.0 )
---
updated-dependencies:
- dependency-name: bs58
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* add `b258` version `0.4.0` to `deny.toml`
---------
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-05-30 02:01:31 +00:00
dependabot[bot]
61d3c34a78
build(deps): bump tokio from 1.28.1 to 1.28.2 ( #6777 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.1...tokio-1.28.2 )
---
updated-dependencies:
- dependency-name: tokio
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-05-29 21:42:30 +00:00
dependabot[bot]
636dd424d5
build(deps): bump criterion from 0.5.0 to 0.5.1 ( #6771 )
...
Bumps [criterion](https://github.com/bheisler/criterion.rs ) from 0.5.0 to 0.5.1.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1 )
---
updated-dependencies:
- dependency-name: criterion
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-05-29 11:41:36 +00:00
dependabot[bot]
dceed5a893
build(deps): bump proptest from 1.1.0 to 1.2.0 ( #6758 )
...
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 1.1.0 to 1.2.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/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: proptest
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-05-25 20:44:16 +00:00
dependabot[bot]
56c9116649
build(deps): bump criterion from 0.4.0 to 0.5.0 ( #6757 )
...
Bumps [criterion](https://github.com/bheisler/criterion.rs ) from 0.4.0 to 0.5.0.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0 )
---
updated-dependencies:
- dependency-name: criterion
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-05-24 21:37:05 +00:00
Pili Guerra
ec2e9ca276
Delete outdated `TODOs` refering to closed issues ( #6732 )
...
* ZIPs were updated to remove ambiguity, this was tracked in #1267 .
* #2105 was fixed by #3039 and #2379 was closed by #3069
* #2230 was a duplicate of #2231 which was closed by #2511
* #3235 was obsoleted by #2156 which was fixed by #3505
* #1850 was fixed by #2944 , #1851 was fixed by #2961 and #2902 was fixed by #2969
* We migrated to Rust 2021 edition in Jan 2022 with #3332
* #1631 was closed as not needed
* #338 was fixed by #3040 and #1162 was fixed by #3067
* #2079 was fixed by #2445
* #4794 was fixed by #6122
* #1678 stopped being an issue
* #3151 was fixed by #3934
* #3204 was closed as not needed
* #1213 was fixed by #4586
* #1774 was closed as not needed
* #4633 was closed as not needed
* Clarify behaviour of difficulty spacing
Co-authored-by: teor <teor@riseup.net>
* Update comment to reflect implemented behaviour
Co-authored-by: teor <teor@riseup.net>
* Update comment to reflect implemented behaviour when retrying block downloads
Co-authored-by: teor <teor@riseup.net>
* Update `TODO` to remove closed issue and clarify when we might want to fix
Co-authored-by: teor <teor@riseup.net>
* Update `TODO` to remove closed issue and clarify what we might want to change in future
Co-authored-by: teor <teor@riseup.net>
* Clarify benefits of how we do block verification
Co-authored-by: teor <teor@riseup.net>
* Fix rustfmt errors
---------
Co-authored-by: teor <teor@riseup.net>
2023-05-23 03:33:14 +00:00
dependabot[bot]
515800e180
build(deps): bump bitflags-serde-legacy from 0.1.0 to 0.1.1 ( #6721 )
...
Bumps [bitflags-serde-legacy](https://github.com/KodrAus/bitflags-serde-legacy ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/KodrAus/bitflags-serde-legacy/releases )
- [Commits](https://github.com/KodrAus/bitflags-serde-legacy/compare/v0.1.0...v0.1.1 )
---
updated-dependencies:
- dependency-name: bitflags-serde-legacy
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-05-18 23:41:26 +00:00
teor
e17542cfb8
fix(log): Stop logging potentially sensitive user information from unmined transactions ( #6616 )
...
* Stop deriving Debug impl
* Change formatting for unmined transactions to keep user info confidential
* Fix derives
2023-05-16 23:55:45 +00:00
dependabot[bot]
81e8198ad8
build(deps): bump serde from 1.0.162 to 1.0.163 ( #6678 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.162 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163 )
---
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-05-16 23:54:09 +00:00
dependabot[bot]
989c5979fb
build(deps): bump serde from 1.0.160 to 1.0.162 ( #6621 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.162.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162 )
---
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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-14 15:05:48 +00:00
Alfredo Garcia
01908822f1
v1.0.0-rc.8 release ( #6632 )
...
* change versions
* add mainnet and testnet checkpoints
* add changelog
* add estimated height
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* cargo update
* rername deprecated function
* fix rustfmt
* update bans
* remove digest as dup dependency
* add dup dependency for all features
---------
Co-authored-by: teor <teor@riseup.net>
2023-05-11 22:15:12 +00:00
dependabot[bot]
6016c9d9d6
build(deps): bump displaydoc from 0.2.3 to 0.2.4 ( #6610 )
...
Bumps [displaydoc](https://github.com/yaahc/displaydoc ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/yaahc/displaydoc/releases )
- [Changelog](https://github.com/yaahc/displaydoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yaahc/displaydoc/commits )
---
updated-dependencies:
- dependency-name: displaydoc
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-05-05 00:29:49 +00:00
dependabot[bot]
ce0d98739b
build(deps): bump serde_with from 2.3.3 to 3.0.0 ( #6599 )
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.3 to 3.0.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.3...v3.0.0 )
---
updated-dependencies:
- dependency-name: serde_with
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-05-04 21:38:04 +00:00
dependabot[bot]
5fb48c2740
build(deps): bump tokio from 1.27.0 to 1.28.0 ( #6572 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.27.0...tokio-1.28.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-05-02 03:38:12 +00:00
dependabot[bot]
3e8f27740b
build(deps): bump serde_with from 2.3.2 to 2.3.3 ( #6588 )
...
Bumps [serde_with](https://github.com/jonasbb/serde_with ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v2.3.2...v2.3.3 )
---
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-05-02 00:13:51 +00:00
Alfredo Garcia
8075d616fb
feat(mempool): add ZIP-317 rules to mempool ( #6556 )
...
* add ZIP-317 rules to mempool
* fix some docs
* rustfmt
* fix import
* typo
* fix tests
* fix tests 2
* fix tests 3
* fix tests 4
* fix tests 5
* move constant
* fix constant for feature
* document/quote zip rules
* add Minimum Fee Rate rule
* change(mempool): Refactor the ZIP-317 minimum fee rate calculation to use usize (#6585 )
* Refactor the minimum fee rate calculation to use usize
* Check for overflow if constants change
* remove 1 rule check, fix docs
---------
Co-authored-by: teor <teor@riseup.net>
2023-05-02 00:13:33 +00:00
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