diff --git a/dash-spv/src/storage/disk/filters.rs b/dash-spv/src/storage/disk/filters.rs index 0d6bcf457..8d0110dd4 100644 --- a/dash-spv/src/storage/disk/filters.rs +++ b/dash-spv/src/storage/disk/filters.rs @@ -19,7 +19,13 @@ impl DiskStorageManager { let mut next_blockchain_height = { let current_tip = self.cached_filter_tip_height.read().await; match *current_tip { - Some(tip) => tip + 1, + Some(tip) => { + if sync_base_height > 0 && tip < sync_base_height { + sync_base_height + } else { + tip + 1 + } + } None => { // If we have a checkpoint, start from there, otherwise from 0 if sync_base_height > 0 {