mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-08 23:08:19 -05:00
docs: update NetworkInner struct definition in network.md (#20752)
This commit is contained in:
@@ -209,13 +209,15 @@ The `NetworkHandle` struct is a client for the network management task that can
|
|||||||
|
|
||||||
[File: crates/net/network/src/network.rs](https://github.com/paradigmxyz/reth/blob/1563506aea09049a85e5cc72c2894f3f7a371581/crates/net/network/src/network.rs)
|
[File: crates/net/network/src/network.rs](https://github.com/paradigmxyz/reth/blob/1563506aea09049a85e5cc72c2894f3f7a371581/crates/net/network/src/network.rs)
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
struct NetworkInner {
|
struct NetworkInner<N: NetworkPrimitives = EthNetworkPrimitives> {
|
||||||
/// Number of active peer sessions the node's currently handling.
|
/// Number of active peer sessions the node's currently handling.
|
||||||
num_active_peers: Arc<AtomicUsize>,
|
num_active_peers: Arc<AtomicUsize>,
|
||||||
/// Sender half of the message channel to the [`NetworkManager`].
|
/// Sender half of the message channel to the [`NetworkManager`].
|
||||||
to_manager_tx: UnboundedSender<NetworkHandleMessage>,
|
to_manager_tx: UnboundedSender<NetworkHandleMessage<N>>,
|
||||||
/// The local address that accepts incoming connections.
|
/// The local address that accepts incoming connections.
|
||||||
listener_address: Arc<Mutex<SocketAddr>>,
|
listener_address: Arc<Mutex<SocketAddr>>,
|
||||||
|
/// The secret key used for authenticating sessions.
|
||||||
|
secret_key: SecretKey,
|
||||||
/// The identifier used by this node.
|
/// The identifier used by this node.
|
||||||
local_peer_id: PeerId,
|
local_peer_id: PeerId,
|
||||||
/// Access to all the nodes
|
/// Access to all the nodes
|
||||||
|
|||||||
Reference in New Issue
Block a user