Struct jormungandr::settings::start::network::Configuration
source · pub struct Configuration {Show 19 fields
pub listen_address: Option<SocketAddr>,
pub public_address: Option<Address>,
pub node_key: SigningKey<Ed25519>,
pub trusted_peers: Vec<TrustedPeer>,
pub protocol: Protocol,
pub max_connections: usize,
pub max_client_connections: usize,
pub timeout: Duration,
pub policy: QuarantineConfig,
pub layers: LayersConfig,
pub allow_private_addresses: bool,
pub whitelist: Option<Vec<Multiaddr>>,
pub gossip_interval: Duration,
pub network_stuck_check: Duration,
pub max_bootstrap_attempts: Option<usize>,
pub bootstrap_from_trusted_peers: bool,
pub skip_bootstrap: bool,
pub http_fetch_block0_service: Vec<String>,
pub dns_server_address: Option<Address>,
}
Expand description
The network static configuration settings
Fields§
§listen_address: Option<SocketAddr>
Local socket address to listen to, if different from public address. The IP address can be given as 0.0.0.0 or :: to bind to all network interfaces.
public_address: Option<Address>
§node_key: SigningKey<Ed25519>
§trusted_peers: Vec<TrustedPeer>
list of trusted addresses
protocol: Protocol
the protocol to utilise for the p2p network
max_connections: usize
Maximum allowed number of peer connections.
max_client_connections: usize
Maximum allowed number of client connections.
timeout: Duration
the default value for the timeout for inactive connection
policy: QuarantineConfig
§layers: LayersConfig
§allow_private_addresses: bool
Whether to allow non-public IP addresses in gossip
whitelist: Option<Vec<Multiaddr>>
§gossip_interval: Duration
§network_stuck_check: Duration
§max_bootstrap_attempts: Option<usize>
§bootstrap_from_trusted_peers: bool
Whether to limit bootstrap to trusted peers (which increase their load / reduce their connectivities)
skip_bootstrap: bool
Whether to skip bootstrap, not recommended in normal settings. useful to true for self-node
http_fetch_block0_service: Vec<String>
§dns_server_address: Option<Address>
Implementations§
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request