zebra_state::service::finalized_state::disk_format::upgrade::add_subtrees

Function check_sapling_subtrees

source
fn check_sapling_subtrees(
    db: &ZebraDb,
    cancel_receiver: &Receiver<CancelFormatChange>,
) -> Result<Result<(), &'static str>, CancelFormatChange>
Expand description

Check that Sapling note commitment subtrees were correctly added.

Returns an error if a note commitment subtree is missing or incorrect.