Skip to content

Commit c835643

Browse files
ci
1 parent fc8606b commit c835643

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

storage/src/merkle/proof.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ impl<F: Family> Subtree<F> {
847847
/// # Errors
848848
///
849849
/// See [`Blueprint::new`].
850+
#[cfg(feature = "std")]
850851
pub(crate) fn range_peaks<F: Family>(
851852
leaves: Location<F>,
852853
inactive_peaks: usize,

storage/src/qmdb/current/sync/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,12 @@ macro_rules! impl_current_sync_database {
305305
if Location::new(bounds.start) > target.range.start() {
306306
return false;
307307
}
308-
let Some(last_loc) = bounds.end.checked_sub(1) else {
309-
return false;
310-
};
311-
let Ok(last_op) = reader.read(last_loc).await else {
312-
return false;
313-
};
314-
let Some(inactivity_floor) = last_op.has_floor() else {
308+
let Ok(inactivity_floor) =
309+
qmdb::find_inactivity_floor_at::<F, _>(&reader, target.range.end(), |op| {
310+
op.has_floor()
311+
})
312+
.await
313+
else {
315314
return false;
316315
};
317316

0 commit comments

Comments
 (0)