Zebra/zebrad/src/components
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
..
inbound fix(network): Avoid initiating outbound handshakes with IPs for which Zebra already has an active peer. (#7029) 2023-07-06 05:54:10 +00:00
mempool cleanup(test): Make test debugging output more readable (#7027) 2023-06-21 15:02:05 +00:00
sync fix(log): Remove redundant startup logs, fix progress bar number, order, and wording (#7087) 2023-07-05 07:08:59 +00:00
tracing fix(log): Remove redundant startup logs, fix progress bar number, order, and wording (#7087) 2023-07-05 07:08:59 +00:00
inbound.rs fix(net): Reduce inbound service overloads and add a timeout (#6950) 2023-06-15 00:43:41 +00:00
mempool.rs fix(log): Remove redundant startup logs, fix progress bar number, order, and wording (#7087) 2023-07-05 07:08:59 +00:00
metrics.rs fix(clippy): Put Rust format variables inline (#5783) 2022-12-08 01:05:57 +00:00
sync.rs Stop panicking on shutdown in the syncer and network init (#7104) 2023-07-02 20:08:11 +00:00
tokio.rs fix(zebrad): accept default subcommand arguments and print consistent usage information for top-level 'help' subcommand (#6801) 2023-06-07 06:03:42 +00:00
tracing.rs print a Zebra logo and some text if stderr is terminal (#6945) 2023-06-27 03:35:07 +00:00