Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Firewall/NAT Detection #271

Merged
merged 8 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
AgeManning committed Oct 22, 2024
commit 8cb608ed73bde3c97ad8560a4001a4c8639f3cdd
8 changes: 4 additions & 4 deletions src/service/connectivity_state.rs
Original file line number Diff line number Diff line change
@@ -11,11 +11,11 @@
//! 1. Our ENR socket gets updated
//! 2. This triggers us to set an incoming wait timer
//! 3. a. If we receive an incoming connection within this time, we consider ourselves contactable
//! and we remove the timer.
//! and we remove the timer.
//! 3. b. If we don't receive a connection and the timer expires. If the timer expires, we set our
//! external ENR address to None and set the `next_connectivity_test` to
//! DURATION_UNTIL_NEXT_CONNECTIVITY_ATTEMPT in the future. This will prevent counting votes until
//! this time, which prevents our ENR from being updated.
//! external ENR address to None and set the `next_connectivity_test` to
//! DURATION_UNTIL_NEXT_CONNECTIVITY_ATTEMPT in the future. This will prevent counting votes until
//! this time, which prevents our ENR from being updated.

use crate::metrics::METRICS;
use futures::{