Fix the storage of anchors in the state (#2563)
* Fix the storage of anchors in the state * Bump database version
This commit is contained in:
parent
7ad5f1cd0a
commit
8747d6682e
|
|
@ -25,7 +25,7 @@ pub const MIN_TRANSPARENT_COINBASE_MATURITY: u32 = 100;
|
||||||
pub const MAX_BLOCK_REORG_HEIGHT: u32 = MIN_TRANSPARENT_COINBASE_MATURITY - 1;
|
pub const MAX_BLOCK_REORG_HEIGHT: u32 = MIN_TRANSPARENT_COINBASE_MATURITY - 1;
|
||||||
|
|
||||||
/// The database format version, incremented each time the database format changes.
|
/// 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,
|
/// The maximum number of blocks to check for NU5 transactions,
|
||||||
/// before we assume we are on a pre-NU5 legacy chain.
|
/// before we assume we are on a pre-NU5 legacy chain.
|
||||||
|
|
|
||||||
|
|
@ -347,8 +347,8 @@ impl FinalizedState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute the new anchors and index them
|
// Compute the new anchors and index them
|
||||||
batch.zs_insert(sapling_anchors, height, sapling_note_commitment_tree.root());
|
batch.zs_insert(sapling_anchors, sapling_note_commitment_tree.root(), ());
|
||||||
batch.zs_insert(orchard_anchors, height, orchard_note_commitment_tree.root());
|
batch.zs_insert(orchard_anchors, orchard_note_commitment_tree.root(), ());
|
||||||
|
|
||||||
// Update the note commitment trees
|
// Update the note commitment trees
|
||||||
if let Some(h) = finalized_tip_height {
|
if let Some(h) = finalized_tip_height {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue