zebra_state::service::read::tree

Function sapling_subtrees

source
pub fn sapling_subtrees<C>(
    chain: Option<C>,
    db: &ZebraDb,
    range: impl RangeBounds<NoteCommitmentSubtreeIndex> + Clone,
) -> BTreeMap<NoteCommitmentSubtreeIndex, NoteCommitmentSubtreeData<Node>>
where C: AsRef<Chain>,
Expand description

Returns a list of Sapling NoteCommitmentSubtrees with indexes in the provided range.

If there is no subtree at the first index in the range, the returned list is empty. Otherwise, subtrees are continuous up to the finalized tip.

See subtrees for more details.