Module upgrade

Source
Expand description

In-place format upgrades and format validity checks for the Zebra state database.

Modules§

add_subtrees 🔒
Fully populate the Sapling and Orchard note commitment subtrees for existing blocks in the database.
cache_genesis_roots 🔒
Updating the genesis note commitment trees to cache their roots.
fix_tree_key_type 🔒
Updating the sprout and history tree key type from Height to the empty key ().
no_migration 🔒
An implementation of DiskFormatUpgrade for marking the database as upgraded to a new format version.
prune_trees 🔒
Prunes duplicate Sapling and Orchard note commitment trees from database
track_tx_locs_by_spends 🔒
Tracks transaction locations by their inputs and revealed nullifiers.
tree_keys_and_caches_upgrade 🔒
Applies the fix_tree_key_type and cache_genesis_roots upgrades to the database.

Structs§

CancelFormatChange
Marker type that is sent to cancel a format upgrade, and returned as an error on cancellation.
DbFormatChangeThreadHandle
A handle to a spawned format change thread.

Enums§

DbFormatChange
The kind of database format change or validity check we’re performing.

Traits§

DiskFormatUpgrade
Defines method signature for running disk format upgrades.

Functions§

format_upgrades 🔒