Trait reth::builder::RethNetworkConfig

source ·
pub trait RethNetworkConfig {
    // Required methods
    fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol);
    fn secret_key(&self) -> SecretKey;
}
Expand description

A trait that represents the configured network and can be used to apply additional configuration to the network.

Required Methods§

source

fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol)

Adds a new additional protocol to the RLPx sub-protocol list.

These additional protocols are negotiated during the RLPx handshake. If both peers share the same protocol, the corresponding handler will be included alongside the eth protocol.

See also ProtocolHandler

source

fn secret_key(&self) -> SecretKey

Returns the secret key used for authenticating sessions.

Object Safety§

This trait is not object safe.

Implementors§