diff --git a/zebra-state/src/sled_state.rs b/zebra-state/src/sled_state.rs
index 9b7eaf66..95bbff3b 100644
--- a/zebra-state/src/sled_state.rs
+++ b/zebra-state/src/sled_state.rs
@@ -1,6 +1,6 @@
//! The primary implementation of the `zebra_state::Service` built upon sled
-use std::{collections::HashMap, convert::TryInto, sync::Arc};
+use std::{collections::HashMap, sync::Arc};
use tracing::trace;
use zebra_chain::transparent;
@@ -13,7 +13,7 @@ use crate::{BoxError, Config, HashOrHeight, QueuedBlock};
mod sled_format;
-use sled_format::{SledDeserialize, SledSerialize};
+use sled_format::{FromSled, SledDeserialize, SledSerialize};
/// The finalized part of the chain state, stored in sled.
///
@@ -294,9 +294,10 @@ impl FinalizedState {
let heights = crate::util::block_locator_heights(tip_height);
let mut hashes = Vec::with_capacity(heights.len());
+
for height in heights {
if let Some(hash) = self.hash_by_height.zs_get(&height)? {
- hashes.push(hash)
+ hashes.push(hash);
}
}
@@ -304,15 +305,16 @@ impl FinalizedState {
}
pub fn tip(&self) -> Result