pub fn run(
    initial_tip_height: Height,
    upgrade_db: &ZebraDb,
    cancel_receiver: &Receiver<CancelFormatChange>,
) -> Result<(), CancelFormatChange>
Expand description

Runs disk format upgrade for adding Sapling and Orchard note commitment subtrees to database.

Trees are added to the database in reverse height order, so that wallets can sync correctly while the upgrade is running.

Returns Ok if the upgrade completed, and Err if it was cancelled.