zebra_state::service::read::tree

Function orchard_tree

source
pub fn orchard_tree<C>(
    chain: Option<C>,
    db: &ZebraDb,
    hash_or_height: HashOrHeight,
) -> Option<Arc<NoteCommitmentTree>>
where C: AsRef<Chain>,
Expand description

Returns the Orchard NoteCommitmentTree specified by a hash or height, if it exists in the non-finalized chain or finalized db.