Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion dash-spv/src/storage/disk/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down