From ad96373ac6c73f6d06aad7df8514ce7d1ee1e0d8 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 1 Jul 2024 22:30:32 +0800 Subject: [PATCH] feat(rpc/admin): peer.kind.is_static Signed-off-by: jsvisa --- crates/rpc/rpc/src/admin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc/src/admin.rs b/crates/rpc/rpc/src/admin.rs index eccbd7ecffae..1d59baa6e274 100644 --- a/crates/rpc/rpc/src/admin.rs +++ b/crates/rpc/rpc/src/admin.rs @@ -86,7 +86,7 @@ where local_address: peer.local_addr.unwrap_or_else(|| self.network.local_addr()), inbound: peer.direction.is_incoming(), trusted: peer.kind.is_trusted(), - static_node: false, // TODO: add static kind + static_node: peer.kind.is_static(), }, protocols: PeerProtocolInfo { eth: Some(EthPeerInfo::Info(EthInfo {