@@ -6,11 +6,13 @@ use std::{
66
77use crate :: error:: Error ;
88use crate :: jsonrpc:: minreq_http:: Builder ;
9+ #[ cfg( not( feature = "29_0" ) ) ]
10+ use corepc_types:: v30:: GetBlockFilter ;
911use corepc_types:: {
1012 bitcoin:: {
1113 block:: Header , consensus:: encode:: deserialize_hex, Block , BlockHash , Transaction , Txid ,
1214 } ,
13- model:: { GetBlockCount , GetBlockFilter , GetRawMempool } ,
15+ model:: { GetBlockCount , GetRawMempool } ,
1416} ;
1517use jsonrpc:: {
1618 serde,
@@ -21,6 +23,9 @@ use jsonrpc::{
2123#[ cfg( feature = "28_0" ) ]
2224pub mod v28;
2325
26+ #[ cfg( feature = "29_0" ) ]
27+ pub mod v29;
28+
2429/// Client authentication methods for the Bitcoin Core JSON-RPC server
2530#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
2631pub enum Auth {
@@ -187,7 +192,7 @@ impl Client {
187192 Ok ( block_hash. parse ( ) ?)
188193 }
189194
190- /// Retrieves the compact block filter for a given block
195+ /// Retrieve the `basic` BIP 157 content filter for a particular block
191196 ///
192197 /// # Arguments
193198 ///
@@ -196,6 +201,7 @@ impl Client {
196201 /// # Returns
197202 ///
198203 /// The `GetBlockFilter` structure containing the filter data
204+ #[ cfg( not( feature = "29_0" ) ) ]
199205 pub fn get_block_filter ( & self , block_hash : & BlockHash ) -> Result < GetBlockFilter , Error > {
200206 let block_filter: GetBlockFilter = self . call ( "getblockfilter" , & [ json ! ( block_hash) ] ) ?;
201207 Ok ( block_filter)
0 commit comments