mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 16:48:13 -05:00
Add admin_(add|remove)TrustedPeer on admin rpc (#678)
This commit is contained in:
@@ -14,6 +14,17 @@ pub trait AdminApi {
|
||||
#[method(name = "admin_removePeer")]
|
||||
async fn remove_peer(&self, record: String) -> Result<bool>;
|
||||
|
||||
/// Adds the given node record to the trusted peerset.
|
||||
#[method(name = "admin_addTrustedPeer")]
|
||||
async fn add_trusted_peer(&self, record: String) -> Result<bool>;
|
||||
|
||||
/// 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<bool>;
|
||||
|
||||
/// Creates an RPC subscription which serves events received from the network.
|
||||
#[subscription(
|
||||
name = "admin_peerEvents",
|
||||
|
||||
Reference in New Issue
Block a user