Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/chain/src/spk_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ where
return None;
}

// `new_with_range` caps `end` at `BIP32_MAX_INDEX + 1`, and the check above
// ensures `next_index < end`, so the index is within the non hardened range.
let script = self
.descriptor
.borrow()
Expand Down
2 changes: 2 additions & 0 deletions crates/chain/src/tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ impl<A: Clone + Ord> TxGraph<A> {

/// Creates an iterator that filters and maps descendants from the starting `txid`.
///
/// The starting transaction is excluded from the iterator.
///
/// The supplied closure takes in two inputs `(depth, descendant_txid)`:
///
/// * `depth` is the distance between the starting `txid` and the `descendant_txid`. I.e., if
Expand Down
2 changes: 2 additions & 0 deletions crates/core/src/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ fn walk_to_floor<D>(current: &CheckPoint<D>, target_height: u32) -> Option<Check

/// A checkpoint is a node of a reference-counted linked list of [`BlockId`]s.
///
/// The list is guaranteed to contain at least one checkpoint.
///
/// Checkpoints are cheaply cloneable and are useful to find the agreement point between two sparse
/// block chains.
#[derive(Debug)]
Expand Down
Loading