Module add_subtrees

Source
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.