docs: update NetworkInner struct definition in network.md (#20752)

This commit is contained in:
andrewshab
2026-01-05 18:09:23 +01:00
committed by GitHub
parent cfeaedd389
commit 5ded234131

View File

@@ -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)
```rust,ignore
struct NetworkInner {
struct NetworkInner<N: NetworkPrimitives = EthNetworkPrimitives> {
/// Number of active peer sessions the node's currently handling.
num_active_peers: Arc<AtomicUsize>,
/// 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.
listener_address: Arc<Mutex<SocketAddr>>,
/// The secret key used for authenticating sessions.
secret_key: SecretKey,
/// The identifier used by this node.
local_peer_id: PeerId,
/// Access to all the nodes