2
2
use crate :: {
3
3
alloc:: { boxed:: Box , collections:: VecDeque , vec:: Vec } ,
4
4
collections:: BTreeMap ,
5
- local_chain:: CheckPoint ,
6
- ConfirmationBlockTime , Indexed ,
5
+ CheckPoint , ConfirmationBlockTime , Indexed ,
7
6
} ;
8
7
use bitcoin:: { OutPoint , Script , ScriptBuf , Txid } ;
9
8
@@ -101,27 +100,6 @@ impl<I> Default for SyncRequestBuilder<I> {
101
100
}
102
101
}
103
102
104
- #[ cfg( feature = "miniscript" ) ]
105
- impl < K : Clone + Ord + core:: fmt:: Debug + Send + Sync > SyncRequestBuilder < ( K , u32 ) > {
106
- /// Add [`Script`]s that are revealed by the `indexer` of the given `spk_range` that will be
107
- /// synced against.
108
- pub fn revealed_spks_from_indexer (
109
- self ,
110
- indexer : & crate :: indexer:: keychain_txout:: KeychainTxOutIndex < K > ,
111
- spk_range : impl core:: ops:: RangeBounds < K > ,
112
- ) -> Self {
113
- self . spks_with_indexes ( indexer. revealed_spks ( spk_range) )
114
- }
115
-
116
- /// Add [`Script`]s that are revealed by the `indexer` but currently unused.
117
- pub fn unused_spks_from_indexer (
118
- self ,
119
- indexer : & crate :: indexer:: keychain_txout:: KeychainTxOutIndex < K > ,
120
- ) -> Self {
121
- self . spks_with_indexes ( indexer. unused_spks ( ) )
122
- }
123
- }
124
-
125
103
impl SyncRequestBuilder < ( ) > {
126
104
/// Add [`Script`]s that will be synced against.
127
105
pub fn spks ( self , spks : impl IntoIterator < Item = ScriptBuf > ) -> Self {
@@ -132,7 +110,7 @@ impl SyncRequestBuilder<()> {
132
110
impl < I > SyncRequestBuilder < I > {
133
111
/// Set the initial chain tip for the sync request.
134
112
///
135
- /// This is used to update [`LocalChain`](crate:: local_chain:: LocalChain).
113
+ /// This is used to update [`LocalChain`](../../bdk_chain/ local_chain/struct. LocalChain.html ).
136
114
pub fn chain_tip ( mut self , cp : CheckPoint ) -> Self {
137
115
self . inner . chain_tip = Some ( cp) ;
138
116
self
@@ -143,7 +121,7 @@ impl<I> SyncRequestBuilder<I> {
143
121
/// # Example
144
122
///
145
123
/// Sync revealed script pubkeys obtained from a
146
- /// [`KeychainTxOutIndex`](crate:: keychain_txout:: KeychainTxOutIndex).
124
+ /// [`KeychainTxOutIndex`](../../bdk_chain/indexer/ keychain_txout/struct. KeychainTxOutIndex.html ).
147
125
///
148
126
/// ```rust
149
127
/// # use bdk_chain::spk_client::SyncRequest;
@@ -216,9 +194,9 @@ impl<I> SyncRequestBuilder<I> {
216
194
///
217
195
/// ```rust
218
196
/// # use bdk_chain::{bitcoin::{hashes::Hash, ScriptBuf}, local_chain::LocalChain};
197
+ /// # use bdk_chain::spk_client::SyncRequest;
219
198
/// # let (local_chain, _) = LocalChain::from_genesis_hash(Hash::all_zeros());
220
199
/// # let scripts = [ScriptBuf::default(), ScriptBuf::default()];
221
- /// # use bdk_chain::spk_client::SyncRequest;
222
200
/// // Construct a sync request.
223
201
/// let sync_request = SyncRequest::builder()
224
202
/// // Provide chain tip of the local wallet.
@@ -345,9 +323,11 @@ impl<I> SyncRequest<I> {
345
323
#[ must_use]
346
324
#[ derive( Debug ) ]
347
325
pub struct SyncResult < A = ConfirmationBlockTime > {
348
- /// The update to apply to the receiving [`TxGraph`](crate::tx_graph::TxGraph).
326
+ /// The update to apply to the receiving
327
+ /// [`TxGraph`](../../bdk_chain/tx_graph/struct.TxGraph.html).
349
328
pub graph_update : crate :: tx_graph:: Update < A > ,
350
- /// The update to apply to the receiving [`LocalChain`](crate::local_chain::LocalChain).
329
+ /// The update to apply to the receiving
330
+ /// [`LocalChain`](../../bdk_chain/local_chain/struct.LocalChain.html).
351
331
pub chain_update : Option < CheckPoint > ,
352
332
}
353
333
@@ -374,24 +354,10 @@ impl<K> Default for FullScanRequestBuilder<K> {
374
354
}
375
355
}
376
356
377
- #[ cfg( feature = "miniscript" ) ]
378
- impl < K : Ord + Clone + core:: fmt:: Debug > FullScanRequestBuilder < K > {
379
- /// Add spk iterators for each keychain tracked in `indexer`.
380
- pub fn spks_from_indexer (
381
- mut self ,
382
- indexer : & crate :: indexer:: keychain_txout:: KeychainTxOutIndex < K > ,
383
- ) -> Self {
384
- for ( keychain, spks) in indexer. all_unbounded_spk_iters ( ) {
385
- self = self . spks_for_keychain ( keychain, spks) ;
386
- }
387
- self
388
- }
389
- }
390
-
391
357
impl < K : Ord > FullScanRequestBuilder < K > {
392
358
/// Set the initial chain tip for the full scan request.
393
359
///
394
- /// This is used to update [`LocalChain`](crate:: local_chain:: LocalChain).
360
+ /// This is used to update [`LocalChain`](../../bdk_chain/ local_chain/struct. LocalChain.html ).
395
361
pub fn chain_tip ( mut self , tip : CheckPoint ) -> Self {
396
362
self . inner . chain_tip = Some ( tip) ;
397
363
self
@@ -496,9 +462,10 @@ impl<K: Ord + Clone> FullScanRequest<K> {
496
462
#[ must_use]
497
463
#[ derive( Debug ) ]
498
464
pub struct FullScanResult < K , A = ConfirmationBlockTime > {
499
- /// The update to apply to the receiving [`LocalChain`](crate::local_chain::LocalChain).
465
+ /// The update to apply to the receiving
466
+ /// [`LocalChain`](../../bdk_chain/local_chain/struct.LocalChain.html).
500
467
pub graph_update : crate :: tx_graph:: Update < A > ,
501
- /// The update to apply to the receiving [`TxGraph`](crate:: tx_graph:: TxGraph).
468
+ /// The update to apply to the receiving [`TxGraph`](../../bdk_chain/ tx_graph/struct. TxGraph.html ).
502
469
pub chain_update : Option < CheckPoint > ,
503
470
/// Last active indices for the corresponding keychains (`K`).
504
471
pub last_active_indices : BTreeMap < K , u32 > ,
0 commit comments