Module tree

Source
Expand description

Reading note commitment trees.

In the functions in this module:

The block write task commits blocks to the finalized state before updating chain with a cached copy of the best non-finalized chain from NonFinalizedState.chain_set. Then the block commit task can commit additional blocks to the finalized state after we’ve cloned the chain.

This means that some blocks can be in both:

  • the cached Chain, and
  • the shared finalized ZebraDb reference.

Functions§

history_tree
Get the history tree of the provided chain.
orchard_subtrees
Returns a list of Orchard NoteCommitmentSubtrees with indexes in the provided range.
orchard_tree
Returns the Orchard NoteCommitmentTree specified by a hash or height, if it exists in the non-finalized chain or finalized db.
sapling_subtrees
Returns a list of Sapling NoteCommitmentSubtrees with indexes in the provided range.
sapling_tree
Returns the Sapling NoteCommitmentTree specified by a hash or height, if it exists in the non-finalized chain or finalized db.
subtrees 🔒
Returns a list of NoteCommitmentSubtrees in the provided range.