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
.