Expand description
Fully populate the Sapling and Orchard note commitment subtrees for existing blocks in the database.
Structs§
- AddSubtrees
- Implements
DiskFormatUpgrade
for populating Sapling and Orchard note commitment subtrees.
Functions§
- calculate_
orchard_ 🔒subtree - Calculates a note commitment subtree for Orchard, reading blocks from
read_db
if needed. - calculate_
sapling_ 🔒subtree - Calculates a note commitment subtree for Sapling, reading blocks from
read_db
if needed. - check_
orchard_ 🔒subtrees - Check that Orchard note commitment subtrees were correctly added.
- check_
sapling_ 🔒subtrees - Check that Sapling note commitment subtrees were correctly added.
- first_
orchard_ 🔒mainnet_ subtree - A quick test vector that allows us to fail an incorrect upgrade within a few seconds.
- first_
sapling_ 🔒mainnet_ subtree - A quick test vector that allows us to fail an incorrect upgrade within a few seconds.
- quick_
check_ 🔒orchard_ subtrees - Quickly check that the first calculated orchard subtree is correct.
- quick_
check_ 🔒sapling_ subtrees - Quickly check that the first calculated sapling subtree is correct.
- reset
- Reset data from previous upgrades. This data can be complete or incomplete.
- subtree_
format_ calculation_ pre_ checks - Quickly check that the first calculated subtree is correct.
- write_
orchard_ 🔒subtree - Writes an Orchard note commitment subtree to
upgrade_db
. - write_
sapling_ 🔒subtree - Writes a Sapling note commitment subtree to
upgrade_db
.