diff --git a/client/src/client_sync/v19/blockchain.rs b/client/src/client_sync/v19/blockchain.rs index e4a0bba2..7b7d5aea 100644 --- a/client/src/client_sync/v19/blockchain.rs +++ b/client/src/client_sync/v19/blockchain.rs @@ -20,55 +20,3 @@ macro_rules! impl_client_v19__getblockfilter { } }; } - -/// Implements Bitcoin Core JSON-RPC API method `getmempoolancestors` -#[macro_export] -macro_rules! impl_client_v19__getmempoolancestors { - () => { - impl Client { - pub fn get_mempool_ancestors(&self, txid: Txid) -> Result { - // Equivalent to self.call("getmempoolancestors", &[into_json(txid)?, into_json(false)?]) - self.call("getmempoolancestors", &[into_json(txid)?]) - } - - pub fn get_mempool_ancestors_verbose( - &self, - txid: Txid, - ) -> Result { - self.call("getmempoolancestors", &[into_json(txid)?, into_json(true)?]) - } - } - }; -} - -/// Implements Bitcoin Core JSON-RPC API method `getmempooldescendants` -#[macro_export] -macro_rules! impl_client_v19__getmempooldescendants { - () => { - impl Client { - pub fn get_mempool_descendants(&self, txid: Txid) -> Result { - // Equivalent to self.call("getmempooldescendants", &[into_json(txid)?, into_json(false)?]) - self.call("getmempooldescendants", &[into_json(txid)?]) - } - - pub fn get_mempool_descendants_verbose( - &self, - txid: Txid, - ) -> Result { - self.call("getmempooldescendants", &[into_json(txid)?, into_json(true)?]) - } - } - }; -} - -/// Implements Bitcoin Core JSON-RPC API method `getmempoolentry` -#[macro_export] -macro_rules! impl_client_v19__getmempoolentry { - () => { - impl Client { - pub fn get_mempool_entry(&self, txid: Txid) -> Result { - self.call("getmempoolentry", &[into_json(txid)?]) - } - } - }; -} diff --git a/client/src/client_sync/v19/mod.rs b/client/src/client_sync/v19/mod.rs index 555e6fca..d2a1cfb1 100644 --- a/client/src/client_sync/v19/mod.rs +++ b/client/src/client_sync/v19/mod.rs @@ -34,9 +34,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v17__gettxout!(); diff --git a/client/src/client_sync/v20.rs b/client/src/client_sync/v20.rs index 1b77dc23..4fe9375f 100644 --- a/client/src/client_sync/v20.rs +++ b/client/src/client_sync/v20.rs @@ -31,9 +31,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v17__gettxout!(); diff --git a/client/src/client_sync/v21/mod.rs b/client/src/client_sync/v21/mod.rs index b916a649..f30784e7 100644 --- a/client/src/client_sync/v21/mod.rs +++ b/client/src/client_sync/v21/mod.rs @@ -33,9 +33,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v17__gettxout!(); diff --git a/client/src/client_sync/v22/mod.rs b/client/src/client_sync/v22/mod.rs index 2ba8cf39..5243d0d6 100644 --- a/client/src/client_sync/v22/mod.rs +++ b/client/src/client_sync/v22/mod.rs @@ -34,9 +34,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v23/mod.rs b/client/src/client_sync/v23/mod.rs index c0cb301d..760f5faa 100644 --- a/client/src/client_sync/v23/mod.rs +++ b/client/src/client_sync/v23/mod.rs @@ -35,9 +35,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v24.rs b/client/src/client_sync/v24.rs index 2f95529e..b91964e8 100644 --- a/client/src/client_sync/v24.rs +++ b/client/src/client_sync/v24.rs @@ -31,9 +31,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v25.rs b/client/src/client_sync/v25.rs index 0f49f1c5..e1b972c7 100644 --- a/client/src/client_sync/v25.rs +++ b/client/src/client_sync/v25.rs @@ -31,9 +31,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v26/mod.rs b/client/src/client_sync/v26/mod.rs index 89e3c063..eaf2d5c8 100644 --- a/client/src/client_sync/v26/mod.rs +++ b/client/src/client_sync/v26/mod.rs @@ -35,9 +35,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v27.rs b/client/src/client_sync/v27.rs index 402561d5..75339c42 100644 --- a/client/src/client_sync/v27.rs +++ b/client/src/client_sync/v27.rs @@ -31,9 +31,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!(); diff --git a/client/src/client_sync/v28/mod.rs b/client/src/client_sync/v28/mod.rs index 6ae9bb99..132e9f66 100644 --- a/client/src/client_sync/v28/mod.rs +++ b/client/src/client_sync/v28/mod.rs @@ -33,9 +33,9 @@ crate::impl_client_v17__getblockstats!(); crate::impl_client_v17__getchaintips!(); crate::impl_client_v17__getchaintxstats!(); crate::impl_client_v17__getdifficulty!(); -crate::impl_client_v19__getmempoolancestors!(); -crate::impl_client_v19__getmempooldescendants!(); -crate::impl_client_v19__getmempoolentry!(); +crate::impl_client_v17__getmempoolancestors!(); +crate::impl_client_v17__getmempooldescendants!(); +crate::impl_client_v17__getmempoolentry!(); crate::impl_client_v17__getmempoolinfo!(); crate::impl_client_v17__getrawmempool!(); crate::impl_client_v22__gettxout!();