11//! This module provides utility functions for testing custom persistence backends.
22use crate :: { block_id, hash} ;
3- #[ cfg( feature = "miniscript" ) ]
43use bdk_chain:: {
54 bitcoin:: ScriptBuf , indexer:: keychain_txout, DescriptorExt , DescriptorId , SpkIterator ,
65} ;
@@ -14,7 +13,6 @@ use std::sync::Arc;
1413
1514use crate :: utils:: { create_test_tx, create_txout} ;
1615
17- #[ cfg( feature = "miniscript" ) ]
1816use crate :: utils:: { parse_descriptor, spk_at_index} ;
1917
2018const ADDRS : [ & str ; 2 ] = [
@@ -127,7 +125,6 @@ pub fn persist_txgraph_changeset<Store, CreateStore, Initialize, Persist>(
127125/// We create a dummy [`keychain_txout::ChangeSet`], persist it and check if loaded `ChangeSet`
128126/// matches the persisted one. We then create another such dummy `ChangeSet`, persist it and load it
129127/// to check if merged `ChangeSet` is returned.
130- #[ cfg( feature = "miniscript" ) ]
131128pub fn persist_indexer_changeset < Store , CreateStore , Initialize , Persist > (
132129 file_name : & str ,
133130 create_store : CreateStore ,
@@ -748,7 +745,6 @@ pub fn persist_anchors<Store, CreateStore, Initialize, Persist>(
748745/// We create a dummy [`keychain_txout::ChangeSet`] with only `last_revealed` field populated,
749746/// persist it and check if loaded `ChangeSet` matches the persisted one. We then create another
750747/// such dummy `ChangeSet`, persist it and load it to check if merged `ChangeSet` is returned.
751- #[ cfg( feature = "miniscript" ) ]
752748pub fn persist_last_revealed < Store , CreateStore , Initialize , Persist > (
753749 file_name : & str ,
754750 create_store : CreateStore ,
@@ -805,7 +801,6 @@ pub fn persist_last_revealed<Store, CreateStore, Initialize, Persist>(
805801/// We create a dummy [`keychain_txout::ChangeSet`] with only `spk_cache` field populated, persist
806802/// it and check if loaded `ChangeSet` matches the persisted one. We then create another such dummy
807803/// `ChangeSet`, persist it and load it to check if merged `ChangeSet` is returned.
808- #[ cfg( feature = "miniscript" ) ]
809804pub fn persist_spk_cache < Store , CreateStore , Initialize , Persist > (
810805 file_name : & str ,
811806 create_store : CreateStore ,
0 commit comments