From a038687d202c1a802b4e6e638168bb7f61dc3e7a Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Mon, 17 Aug 2020 13:28:38 -0400 Subject: [PATCH] Fix #3380 Broken API Links (#3381) --- api/src/foreign_rpc.rs | 24 ++++++++++++------------ api/src/owner_rpc.rs | 14 +++++++------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/api/src/foreign_rpc.rs b/api/src/foreign_rpc.rs index 387b42b06..173c63623 100644 --- a/api/src/foreign_rpc.rs +++ b/api/src/foreign_rpc.rs @@ -34,7 +34,7 @@ use crate::util; #[easy_jsonrpc_mw::rpc] pub trait ForeignRpc: Sync + Send { /** - Networked version of [Foreign::get_header](struct.Node.html#method.get_header). + Networked version of [Foreign::get_header](struct.Foreign.html#method.get_header). # Json rpc example @@ -130,7 +130,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result; /** - Networked version of [Foreign::get_block](struct.Node.html#method.get_block). + Networked version of [Foreign::get_block](struct.Foreign.html#method.get_block). # Json rpc example @@ -248,7 +248,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result; /** - Networked version of [Foreign::get_version](struct.Node.html#method.get_version). + Networked version of [Foreign::get_version](struct.Foreign.html#method.get_version). # Json rpc example @@ -281,7 +281,7 @@ pub trait ForeignRpc: Sync + Send { fn get_version(&self) -> Result; /** - Networked version of [Foreign::get_tip](struct.Node.html#method.get_tip). + Networked version of [Foreign::get_tip](struct.Foreign.html#method.get_tip). # Json rpc example @@ -316,7 +316,7 @@ pub trait ForeignRpc: Sync + Send { fn get_tip(&self) -> Result; /** - Networked version of [Foreign::get_kernel](struct.Node.html#method.get_kernel). + Networked version of [Foreign::get_kernel](struct.Foreign.html#method.get_kernel). # Json rpc example @@ -359,7 +359,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result; /** - Networked version of [Foreign::get_outputs](struct.Node.html#method.get_outputs). + Networked version of [Foreign::get_outputs](struct.Foreign.html#method.get_outputs). # Json rpc example @@ -446,7 +446,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result, ErrorKind>; /** - Networked version of [Foreign::get_unspent_outputs](struct.Node.html#method.get_unspent_outputs). + Networked version of [Foreign::get_unspent_outputs](struct.Foreign.html#method.get_unspent_outputs). # Json rpc example @@ -507,7 +507,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result; /** - Networked version of [Foreign::get_pmmr_indices](struct.Node.html#method.get_pmmr_indices). + Networked version of [Foreign::get_pmmr_indices](struct.Foreign.html#method.get_pmmr_indices). # Json rpc example @@ -544,7 +544,7 @@ pub trait ForeignRpc: Sync + Send { ) -> Result; /** - Networked version of [Foreign::get_pool_size](struct.Node.html#method.get_pool_size). + Networked version of [Foreign::get_pool_size](struct.Foreign.html#method.get_pool_size). # Json rpc example @@ -574,7 +574,7 @@ pub trait ForeignRpc: Sync + Send { fn get_pool_size(&self) -> Result; /** - Networked version of [Foreign::get_stempool_size](struct.Node.html#method.get_stempool_size). + Networked version of [Foreign::get_stempool_size](struct.Foreign.html#method.get_stempool_size). # Json rpc example @@ -604,7 +604,7 @@ pub trait ForeignRpc: Sync + Send { fn get_stempool_size(&self) -> Result; /** - Networked version of [Foreign::get_unconfirmed_transactions](struct.Node.html#method.get_unconfirmed_transactions). + Networked version of [Foreign::get_unconfirmed_transactions](struct.Foreign.html#method.get_unconfirmed_transactions). # Json rpc example @@ -677,7 +677,7 @@ pub trait ForeignRpc: Sync + Send { fn get_unconfirmed_transactions(&self) -> Result, ErrorKind>; /** - Networked version of [Foreign::push_transaction](struct.Node.html#method.push_transaction). + Networked version of [Foreign::push_transaction](struct.Foreign.html#method.push_transaction). # Json rpc example diff --git a/api/src/owner_rpc.rs b/api/src/owner_rpc.rs index fafad2984..e68a31174 100644 --- a/api/src/owner_rpc.rs +++ b/api/src/owner_rpc.rs @@ -28,7 +28,7 @@ use std::net::SocketAddr; #[easy_jsonrpc_mw::rpc] pub trait OwnerRpc: Sync + Send { /** - Networked version of [Owner::get_status](struct.Node.html#method.get_status). + Networked version of [Owner::get_status](struct.Owner.html#method.get_status). # Json rpc example @@ -73,7 +73,7 @@ pub trait OwnerRpc: Sync + Send { fn get_status(&self) -> Result; /** - Networked version of [Owner::validate_chain](struct.Node.html#method.validate_chain). + Networked version of [Owner::validate_chain](struct.Owner.html#method.validate_chain). # Json rpc example @@ -103,7 +103,7 @@ pub trait OwnerRpc: Sync + Send { fn validate_chain(&self) -> Result<(), ErrorKind>; /** - Networked version of [Owner::compact_chain](struct.Node.html#method.compact_chain). + Networked version of [Owner::compact_chain](struct.Owner.html#method.compact_chain). # Json rpc example @@ -133,7 +133,7 @@ pub trait OwnerRpc: Sync + Send { fn compact_chain(&self) -> Result<(), ErrorKind>; /** - Networked version of [Owner::get_peers](struct.Node.html#method.get_peers). + Networked version of [Owner::get_peers](struct.Owner.html#method.get_peers). # Json rpc example @@ -175,7 +175,7 @@ pub trait OwnerRpc: Sync + Send { fn get_peers(&self, peer_addr: Option) -> Result, ErrorKind>; /** - Networked version of [Owner::get_connected_peers](struct.Node.html#method.get_connected_peers). + Networked version of [Owner::get_connected_peers](struct.Owner.html#method.get_connected_peers). # Json rpc example @@ -294,7 +294,7 @@ pub trait OwnerRpc: Sync + Send { fn get_connected_peers(&self) -> Result, ErrorKind>; /** - Networked version of [Owner::ban_peer](struct.Node.html#method.ban_peer). + Networked version of [Owner::ban_peer](struct.Owner.html#method.ban_peer). # Json rpc example @@ -324,7 +324,7 @@ pub trait OwnerRpc: Sync + Send { fn ban_peer(&self, peer_addr: SocketAddr) -> Result<(), ErrorKind>; /** - Networked version of [Owner::unban_peer](struct.Node.html#method.unban_peer). + Networked version of [Owner::unban_peer](struct.Owner.html#method.unban_peer). # Json rpc example