Module zebra_state::service::finalized_state::disk_format::upgrade::add_subtrees
source ยท Expand description
Fully populate the Sapling and Orchard note commitment subtrees for existing blocks in the database.
Functionsยง
- Calculates a note commitment subtree for Orchard, reading blocks from
read_db
if needed. - Calculates a note commitment subtree for Sapling, reading blocks from
read_db
if needed. - Check that Orchard note commitment subtrees were correctly added.
- Check that Sapling note commitment subtrees were correctly added.
- A quick test vector that allows us to fail an incorrect upgrade within a few seconds.
- A quick test vector that allows us to fail an incorrect upgrade within a few seconds.
- Quickly check that the first calculated orchard subtree is correct.
- Quickly check that the first calculated sapling subtree is correct.
- Reset data from previous upgrades. This data can be complete or incomplete.
- Runs disk format upgrade for adding Sapling and Orchard note commitment subtrees to database.
- Quickly check that the first calculated subtree is correct.
- Check that note commitment subtrees were correctly added.
- Writes an Orchard note commitment subtree to
upgrade_db
. - Writes a Sapling note commitment subtree to
upgrade_db
.