Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Apr 24, 2024
1 parent e009a04 commit 9018176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ pub struct NodeConfigP2P {
pub ipv4: bool,
#[serde(default = "default_as_true", skip_serializing_if = "skip_if_true")]
pub ipv6: bool,
/// A list of peer addresses to try and manually connect to, instead of relying on discovery.
#[serde(default)]
pub manual_peers: Vec<SocketAddr>,

Check failure on line 78 in core/src/node/config.rs

View workflow job for this annotation

GitHub Actions / Clippy (ubuntu-20.04)

cannot find type `SocketAddr` in this scope

error[E0412]: cannot find type `SocketAddr` in this scope --> core/src/node/config.rs:78:24 | 78 | pub manual_peers: Vec<SocketAddr>, | ^^^^^^^^^^ not found in this scope | help: consider importing one of these items | 1 + use core::net::SocketAddr; | 1 + use std::net::SocketAddr; | 1 + use std::os::unix::net::SocketAddr; | 1 + use tokio::net::unix::SocketAddr; |
}

impl Default for NodeConfigP2P {
Expand All @@ -81,6 +84,7 @@ impl Default for NodeConfigP2P {
port: Port::Random,
ipv4: true,
ipv6: true,
manual_peers: vec![],
}
}
}
Expand Down

0 comments on commit 9018176

Please sign in to comment.