arya2
6df37fd05f
rustfmt
2023-08-25 17:24:15 -04:00
Alfredo Garcia
0cc48a322a
fix(docs): docs after new rust version ( #7375 )
...
* fix docs build
* fix docs build errors in sapling trees
* fix docs build in sprout joinsplits
* fix doc build in handshake
* fix docs build in zebra-state
* fix docs build in zebrad
* new line fix
2023-08-24 11:31:10 +00:00
dependabot[bot]
4ccd6f1c81
build(deps): bump the test group with 1 update ( #7358 )
...
Bumps the test group with 1 update: [tempfile](https://github.com/Stebalien/tempfile ).
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.1...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: test
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 23:39:06 +00:00
dependabot[bot]
31426f3b0e
build(deps): bump the formats group with 2 updates ( #7357 )
...
Bumps the formats group with 2 updates: [serde](https://github.com/serde-rs/serde ) and [serde_with](https://github.com/jonasbb/serde_with ).
Updates `serde` from 1.0.183 to 1.0.185
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.183...v1.0.185 )
Updates `serde_with` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.2.0...v3.3.0 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: formats
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 21:05:24 +00:00
dependabot[bot]
7123701183
build(deps): bump the log group with 2 updates ( #7355 )
...
Bumps the log group with 2 updates: [thiserror](https://github.com/dtolnay/thiserror ) and [inferno](https://github.com/jonhoo/inferno ).
Updates `thiserror` from 1.0.46 to 1.0.47
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.46...1.0.47 )
Updates `inferno` from 0.11.15 to 0.11.16
- [Changelog](https://github.com/jonhoo/inferno/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jonhoo/inferno/compare/v0.11.15...v0.11.16 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: log
- dependency-name: inferno
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: log
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 21:04:54 +00:00
dependabot[bot]
b0003076c3
build(deps): bump the data-structures group with 1 update ( #7327 )
...
Bumps the data-structures group with 1 update: [bitflags](https://github.com/bitflags/bitflags ).
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.3...2.4.0 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: data-structures
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 19:17:49 +00:00
dependabot[bot]
22b4c061ba
build(deps): bump the async group with 1 update ( #7323 )
...
Bumps the async group with 1 update: [tokio](https://github.com/tokio-rs/tokio ).
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.31.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: async
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 16:10:32 +00:00
dependabot[bot]
951469956f
build(deps): bump the formats group with 2 updates ( #7336 )
...
Bumps the formats group with 2 updates: [serde](https://github.com/serde-rs/serde ) and [serde_json](https://github.com/serde-rs/json ).
Updates `serde` from 1.0.179 to 1.0.183
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.179...v1.0.183 )
Updates `serde_json` from 1.0.104 to 1.0.105
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 16:09:51 +00:00
dependabot[bot]
7605a3376b
build(deps): bump the log group with 2 updates ( #7337 )
...
Bumps the log group with 2 updates: [thiserror](https://github.com/dtolnay/thiserror ) and [log](https://github.com/rust-lang/log ).
Updates `thiserror` from 1.0.44 to 1.0.46
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.46 )
Updates `log` from 0.4.19 to 0.4.20
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: log
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: log
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 11:10:03 +00:00
dependabot[bot]
d8168db3e1
build(deps): bump the test group with 1 update ( #7301 )
...
Bumps the test group with 1 update: [tempfile](https://github.com/Stebalien/tempfile ).
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: test
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 18:49:21 +00:00
dependabot[bot]
38b227f06c
build(deps): bump the async group with 1 update ( #7300 )
...
Bumps the async group with 1 update: [pin-project](https://github.com/taiki-e/pin-project ).
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: pin-project
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: async
...
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-08-13 16:06:32 +00:00
dependabot[bot]
e2bf4aa330
build(deps): bump the formats group with 4 updates ( #7298 )
...
Bumps the formats group with 4 updates: [serde](https://github.com/serde-rs/serde ), [regex](https://github.com/rust-lang/regex ), [serde_json](https://github.com/serde-rs/json ) and [serde_with](https://github.com/jonasbb/serde_with ).
Updates `serde` from 1.0.175 to 1.0.179
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.175...v1.0.179 )
Updates `regex` from 1.9.1 to 1.9.3
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.3 )
Updates `serde_json` from 1.0.103 to 1.0.104
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.104 )
Updates `serde_with` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/jonasbb/serde_with/releases )
- [Commits](https://github.com/jonasbb/serde_with/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
- dependency-name: serde_with
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: formats
...
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-08-10 22:28:00 +00:00
dependabot[bot]
b8dd54081d
build(deps): bump the formats group with 1 update ( #7283 )
...
Bumps the formats group with 1 update: [serde](https://github.com/serde-rs/serde ).
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.171...v1.0.175 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: formats
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 02:22:22 +00:00
dependabot[bot]
bce8e1a842
build(deps): bump the log group with 1 update ( #7281 )
...
Bumps the log group with 1 update: [thiserror](https://github.com/dtolnay/thiserror ).
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: log
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 20:20:22 +00:00
dependabot[bot]
64f116a861
build(deps): bump the test group with 1 update ( #7284 )
...
Bumps the test group with 1 update: [tempfile](https://github.com/Stebalien/tempfile ).
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.6.0...v3.7.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: test
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 17:45:55 +00:00
Arya
a6bdb480bb
Release Zebra v1.1.0 ( #7259 )
...
* Updates dependencies
* Dedups bindgen, removes windows-sys from deny.toml
* Updates checkpoints
* chore: Release
* Adds changelog draft
* updates estimated_release_height
* Updates changelog
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
---------
Co-authored-by: teor <teor@riseup.net>
2023-07-22 01:18:09 +00:00
teor
3bbe3cec4f
fix(panic): Stop panicking on async task cancellation on shutdown in network and state futures ( #7219 )
...
* Add an async-error feature and an initial module structure
* Implement checking for panics in OS threads and async tasks
* Implement waiting for panics in OS threads and async tasks
* Add a TODO to simplify some state request error handling
* Use the new panic-checking methods in zebra-state
* Use new panic-checking methods in zebra-network
* fixup! Implement waiting for panics in OS threads and async tasks
* Replace existing async code with generic panic-checking methods
* Simplify trait to a single method
* Move thread panic code into generic trait impls
* Simplify option handling
Co-authored-by: Arya <aryasolhi@gmail.com>
* Fix comment
Co-authored-by: Arya <aryasolhi@gmail.com>
* Add missing track_caller
---------
Co-authored-by: Arya <aryasolhi@gmail.com>
2023-07-18 04:53:26 +00:00
Arya
7b0dedd3a2
fix(network): Rate-limit inbound connections per IP. ( #7041 )
...
* Adds RecentByIp
* Removes new [cfg(not(test))]s, supports configurable max_conn_per_ip in RecentByIp and account_inbound_connections
Updates tests
* Uses self.time_limit instead of constant
* Adds sleep after dropping connections
Uses partition_point & split_off
Moves tests to separate module
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Always prune before adding
* Tweak comments
* Move the time calculation outside the binary search closure
---------
Co-authored-by: teor <teor@riseup.net>
2023-07-14 02:26:46 +00:00
dependabot[bot]
7f3a4e97b7
build(deps): bump regex from 1.8.4 to 1.9.1 ( #7189 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.8.4 to 1.9.1.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.8.4...1.9.1 )
---
updated-dependencies:
- dependency-name: regex
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-07-12 21:30:36 +00:00
dependabot[bot]
0d332646bf
build(deps): bump the serde group with 1 update ( #7184 )
...
Bumps the serde group with 1 update: [serde](https://github.com/serde-rs/serde ).
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.166...v1.0.168 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: serde
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 08:27:21 +00:00
dependabot[bot]
8c5bcb7487
build(deps): bump thiserror from 1.0.41 to 1.0.43 ( #7174 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.41 to 1.0.43.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.41...1.0.43 )
---
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-07-10 03:37:10 +00:00
teor
f6afec2be8
fix(ci): Increase peer cache startup wait time and test time ( #7169 )
...
* Increase peer cache test time
* Wait longer for DNS responses before writing peers to disk
2023-07-07 03:35:41 +00:00
dependabot[bot]
2492648b5f
build(deps): bump toml from 0.7.5 to 0.7.6 ( #7164 )
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.7.5 to 0.7.6.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.5...toml-v0.7.6 )
---
updated-dependencies:
- dependency-name: toml
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-07-06 18:01:29 +00:00
Arya
77ad91ced4
fix(network): Avoid initiating outbound handshakes with IPs for which Zebra already has an active peer. ( #7029 )
...
* Adds most_recent_by_ip field to address book
* adds test
* Apply suggestions from code review
* fixes lint
* Updates most_recent_by_ip in .take()
Updates should_update_most_recent_by_ip() and has_active_peer_with_ip to check last_attempt and last_failure times
Renames has_active_peer_with_ip
* Documents that Zebra will not initiate more than 1 outbound connections per IP
* Fixes is_ready_for_connection_attempt_with_ip
Adds test coverage for AttemptPending and Failed
Fixes new_outbound_peer_connections_are_rate_limited proptest
* Applies suggestions from code review.
* Applies suggestions from code review
* Always return true from `is_ready_for_connection_attempt_with_ip` if max_connections_per_ip != 0
* Update max_connections_per_ip config docs
* Warn about invalid config fields and use default values
* Ignores last_attempt and last_failure in is_ready_for_connection_attempt_with_ip
updates test
* Only update most_recent_by_ip if update.last_conn_state is responded.
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* fixes lint
* Update zebra-network/src/address_book.rs
Co-authored-by: teor <teor@riseup.net>
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Fix Rust syntax
* Fix whitespace
---------
Co-authored-by: teor <teor@riseup.net>
2023-07-06 05:54:10 +00:00
dependabot[bot]
730b10a278
build(deps): bump thiserror from 1.0.40 to 1.0.41 ( #7153 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.40...1.0.41 )
---
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-07-05 20:53:05 +00:00
teor
147b8fa3a8
cleanup(rust): Fix new nightly clippy warnings ( #7135 )
...
* Fix "comparison is always true" warning
* Add missing Send bound
* cargo clippy --fix --all-features --all-targets
* incorrect implementation of clone on a Copy type
* cargo fmt --all
2023-07-05 07:11:27 +00:00
teor
f2a2a403a8
fix(log): Remove redundant startup logs, fix progress bar number, order, and wording ( #7087 )
...
* Remove duplicate "running" message, send log file opening logs to stderr
* Add missing block progress bar desc, make them consistent
* Put progress bars in a specific order in each section
* Actually make block progress bar desc consistent
* Make progress bar order even more consistent
* Fix fork blocks plural for 1 block
* Use the correct number of chain fork bars
* Disable confusing partial work display
* Add struct field category comments
* Silence a verbose inventory log
2023-07-05 07:08:59 +00:00
dependabot[bot]
5598d1a72b
build(deps): bump pin-project from 1.1.0 to 1.1.2 ( #7127 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.0...v1.1.2 )
---
updated-dependencies:
- dependency-name: pin-project
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-07-05 07:08:31 +00:00
dependabot[bot]
6ec0c66aa6
build(deps): bump serde from 1.0.164 to 1.0.166 ( #7134 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.164 to 1.0.166.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.166 )
---
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-07-04 16:53:54 +00:00
dependabot[bot]
4713994e64
build(deps): bump metrics from 0.21.0 to 0.21.1 ( #7131 )
...
Bumps [metrics](https://github.com/metrics-rs/metrics ) from 0.21.0 to 0.21.1.
- [Changelog](https://github.com/metrics-rs/metrics/blob/main/release.toml )
- [Commits](https://github.com/metrics-rs/metrics/compare/metrics-v0.21.0...metrics-v0.21.1 )
---
updated-dependencies:
- dependency-name: metrics
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-07-03 23:23:33 +00:00
dependabot[bot]
a8e71b3429
build(deps): bump tokio from 1.29.0 to 1.29.1 ( #7114 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.29.1 )
---
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-07-03 05:39:10 +00:00
teor
2add0e50a9
Release Zebra v1.0.1 ( #7090 )
...
* Update license description in README for MIT-only crates
* Draft changelog with trivial issues
* Remove trivial issues
* Update changelog entries as of commit 2a31972
and PR #7103
* Update mainnet and testnet checkpoints as of 2023-06-30
* chore: Release
* Estimate release height for Zebra v1.0.1
Block height 2139118 at 2023-06-30 01:55:38 UTC
Release is likely to be 2023-07-01
2139118 + 1152 * 3 = 2142574
Then round up to the nearest 1000.
2023-07-02 23:08:40 +00:00
teor
e6c3b87872
Stop panicking on shutdown in the syncer and network init ( #7104 )
2023-07-02 20:08:11 +00:00
dependabot[bot]
5eea111922
build(deps): bump tokio from 1.28.2 to 1.29.0 ( #7094 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.2 to 1.29.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.2...tokio-1.29.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-30 02:58:00 +00:00
Alfredo Garcia
455779c833
build(deps): Bump indexmap, toml and serde_json ( #7100 )
...
* bump toml, indexmap and serde_json all together
* add duplicated indexmap dep to deny.toml
2023-06-29 20:18:52 +00:00
dependabot[bot]
a6731d16f6
build(deps): bump bitflags from 2.3.2 to 2.3.3 ( #7083 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.2...2.3.3 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-29 01:28:00 +00:00
teor
f8e26347a0
Log a zebra-network task cancel on shutdown, rather than panicking ( #7078 )
2023-06-27 19:42:04 +00:00
teor
5324e5afd2
add(tests): Add snapshot tests for sprout database formats ( #7057 )
...
* Add methods for loading entire column families from the database
* Add a method that loads all the sprout trees from the database
* Add snapshot tests for sprout note commitment trees
* Add round-trip proptests for tree root database serialization
* Add a manual sprout note commitment tree database serialization snapshot test
* Add tests for 1,2,4,8 note commitments in a tree
* Remove redundant "rand" package rename in dependencies
* Randomly cache roots rather than only caching even roots
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-06-27 15:32:30 +00:00
dependabot[bot]
7e6162a043
build(deps): bump itertools from 0.10.5 to 0.11.0 ( #7050 )
...
* build(deps): bump itertools from 0.10.5 to 0.11.0
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.5 to 0.11.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0 )
---
updated-dependencies:
- dependency-name: itertools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* add itertools as a duplicated dep
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
2023-06-23 18:27:49 +00:00
teor
3d2c5ef290
fix(concurrency): Use Arc::into_inner() to avoid potential concurrency issues, needs Rust 1.70 ( #7032 )
...
* Use Arc::into_inner() to avoid potential concurrency issues
* Remove some outdated clippy lint workarounds (fixed in Rust 1.66)
* Update the required Rust version to 1.70
2023-06-21 20:44:53 +00:00
Arya
b40fc9b032
change(network): Configurable maximum connections per IP ( #7013 )
...
* Adds config field
* adds new generated config
* Lint
* fixes config_tests
2023-06-20 05:11:45 +00:00
teor
231f5be403
fix(net): Reduce maximum number of connections per IP ( #6993 )
...
* Reduce maximum number of connections per IP
* Fix tests that require multiple connections per IP
2023-06-19 18:17:59 +00:00
teor
ad7af3e2d8
fix(net): Clean up licensing, closure `move`, log typos, tracing spans ( #6995 )
...
* Remove a redundant outbound connector timeout
* Fix panics in inbound connection handshaker
* Refactor to simplify FuturesUnordered types
* Make licensing notes consistent
* Delete redundant `move` in closures
* Fix a log typo
* Add some missing tracing spans
2023-06-19 18:17:39 +00:00
teor
859353b417
fix(panic): Stop panicking when handling inbound connection handshakes ( #6984 )
...
* Remove a redundant outbound connector timeout
* Fix panics in inbound connection handshaker
* Refactor to simplify FuturesUnordered types
2023-06-19 03:39:59 +00:00
Arya
73ce8fbef0
fix(network): Limit number of peer connections per IP address, Ignore new peer connections from the same IP and port ( #6980 )
...
* Limits num peer conns per ip
* Update zebra-network/src/peer_set/set.rs
* Update zebra-network/src/constants.rs
* Apply suggestions from code review
Co-authored-by: teor <teor@riseup.net>
* Keep old peer connections, rather than replacing them with new connections
* Adds max_conns_per_ip field
Configures the max to usize::MAX for some tests.
* Adds a test to check that max_conns_per_ip is enforced
---------
Co-authored-by: teor <teor@riseup.net>
2023-06-19 00:53:00 +00:00
teor
1e12a58b5f
fix(handshake): Add extra timeout logging to peer TCP connections ( #6969 )
...
* Add a missing timeout to outbound TCP connections
* Move inbound handshakes into their own function, replacing the manual span
* Delete a useless manual span in zebra_network::config
* Add an extra timeout to the spawned inbound handshake task
2023-06-15 21:11:24 +00:00
dependabot[bot]
484f3d746d
build(deps): bump bitflags from 2.3.1 to 2.3.2 ( #6943 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.3.1 to 2.3.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.3.1...2.3.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-06-15 18:35:56 +00:00
teor
32ea511a73
fix(net): Reduce inbound service overloads and add a timeout ( #6950 )
...
* Increase concurrency limit, reduce peer broadcast
* Fix a div_ceil() TODO
* Document security requirements of inbound peer overload handling
* Reduce drop probability and fix its formatting
* Put a 5 second timeout on inbound service requests
* Update drop probability tests
* Add error types, metrics, and logging for InboundTimeout errors
2023-06-15 00:43:41 +00:00
Conrado Gouvea
fd78556000
fix: prevent progress bar from panicking using workaround ( #6940 )
...
* fix: prevent progress bar from panicking using workaround
* remove more progress bar lengths
* re-add set_len() calls commented out; restore one that shouldn't cause panics
* Update zebra-state/src/service/non_finalized_state.rs
Co-authored-by: teor <teor@riseup.net>
---------
Co-authored-by: teor <teor@riseup.net>
2023-06-14 19:07:02 +00:00
Arya
9f0e18282c
fix(logs): Avoid grouping logs for separate tasks ( #6923 )
...
* Removes span.enter() in async code
* Restores `accept_span` and uses in_scope() instead of enter()
* Update zebra-network/src/peer_set/initialize.rs
2023-06-14 19:05:11 +00:00