diff --git a/zebra-state/src/constants.rs b/zebra-state/src/constants.rs index 334761a84..5fc6cd0d1 100644 --- a/zebra-state/src/constants.rs +++ b/zebra-state/src/constants.rs @@ -25,7 +25,7 @@ pub const MIN_TRANSPARENT_COINBASE_MATURITY: u32 = 100; pub const MAX_BLOCK_REORG_HEIGHT: u32 = MIN_TRANSPARENT_COINBASE_MATURITY - 1; /// The database format version, incremented each time the database format changes. -pub const DATABASE_FORMAT_VERSION: u32 = 6; +pub const DATABASE_FORMAT_VERSION: u32 = 7; /// The maximum number of blocks to check for NU5 transactions, /// before we assume we are on a pre-NU5 legacy chain. diff --git a/zebra-state/src/service/finalized_state.rs b/zebra-state/src/service/finalized_state.rs index 0736ddd0d..c23dc9af9 100644 --- a/zebra-state/src/service/finalized_state.rs +++ b/zebra-state/src/service/finalized_state.rs @@ -347,8 +347,8 @@ impl FinalizedState { } // Compute the new anchors and index them - batch.zs_insert(sapling_anchors, height, sapling_note_commitment_tree.root()); - batch.zs_insert(orchard_anchors, height, orchard_note_commitment_tree.root()); + batch.zs_insert(sapling_anchors, sapling_note_commitment_tree.root(), ()); + batch.zs_insert(orchard_anchors, orchard_note_commitment_tree.root(), ()); // Update the note commitment trees if let Some(h) = finalized_tip_height {