diff --git a/crates/net/rpc-api/src/admin.rs b/crates/net/rpc-api/src/admin.rs index 81883b828b..b5723235eb 100644 --- a/crates/net/rpc-api/src/admin.rs +++ b/crates/net/rpc-api/src/admin.rs @@ -14,6 +14,17 @@ pub trait AdminApi { #[method(name = "admin_removePeer")] async fn remove_peer(&self, record: String) -> Result; + /// Adds the given node record to the trusted peerset. + #[method(name = "admin_addTrustedPeer")] + async fn add_trusted_peer(&self, record: String) -> Result; + + /// Removes a remote node from the trusted peer set, but it does not disconnect it + /// automatically. + /// + /// Returns true if the peer was successfully removed. + #[method(name = "admin_removeTrustedPeer")] + async fn remove_trusted_peer(&self, record: String) -> Result; + /// Creates an RPC subscription which serves events received from the network. #[subscription( name = "admin_peerEvents",