Skip to content

Commit 705690e

Browse files
committed
feat(chain): make output of SpkTxOutIndex::unused_spks cloneable
This allows us to pass this to chain sources without calling `Iterator::collect` first.
1 parent cd60243 commit 705690e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/chain/src/spk_txout_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl<I: Clone + Ord> SpkTxOutIndex<I> {
215215
/// let unused_change_spks =
216216
/// txout_index.unused_spks((change_index, u32::MIN)..(change_index, u32::MAX));
217217
/// ```
218-
pub fn unused_spks<R>(&self, range: R) -> impl DoubleEndedIterator<Item = (&I, &Script)>
218+
pub fn unused_spks<R>(&self, range: R) -> impl DoubleEndedIterator<Item = (&I, &Script)> + Clone
219219
where
220220
R: RangeBounds<I>,
221221
{

0 commit comments

Comments
 (0)