Skip to content

Commit

Permalink
Add docs for scan_block
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Nov 24, 2023
1 parent a43e806 commit 285a474
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zebra-scan/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,12 @@ fn random_compact_tx(mut rng: impl RngCore) -> CompactTx {
ctx
}

/// Returns transactions belonging to any of the given [`ScanningKey`]s.
///
/// TODO:
/// - Remove the `sapling_tree_size` parameter or turn it into an `Option` once we have access to
/// Zebra's state, and we can retrieve the tree size ourselves.
/// - Add prior block metadata once we have access to Zebra's state.
fn scan_block<K: ScanningKey>(
network: Network,
block: Arc<Block>,
Expand Down

0 comments on commit 285a474

Please sign in to comment.