Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(db): Fix a sprout/history tree read panic in Zebra 1.4.0, which only happens before the 25.3.0 state upgrade completes #7972

Merged
merged 8 commits into from
Nov 22, 2023
Prev Previous commit
Next Next commit
Fix weird closure type syntax
  • Loading branch information
teor2345 committed Nov 21, 2023
commit f5a75428da7d799629e4ebdd4de434d9ca657c65
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl ZebraDb {
history_tree = self
.db
.zs_last_key_value(&history_tree_cf)
.map(|(_key: Height, tree_value)| tree_value);
.map(|(_key, tree_value): (Height, _)| tree_value);
}

history_tree.unwrap_or_default()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl ZebraDb {
sprout_tree = self
.db
.zs_last_key_value(&sprout_tree_cf)
.map(|(_key: Height, tree_value)| tree_value);
.map(|(_key, tree_value): (Height, _)| tree_value);
}

sprout_tree.expect("Sprout note commitment tree must exist if there is a finalized tip")
Expand Down
Loading