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.