Skip to content

Commit

Permalink
put the parents in ancestor
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Mar 22, 2024
1 parent b6f8f8b commit 181299b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sync/src/tasks/block_sync_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,11 @@ where
continue;
}
absent_blocks.push(parent)
} else {
if ancestors.contains(&parent) {
continue;
}
ancestors.push(parent);
}
if ancestors.contains(&parent) {
continue;
}
ancestors.push(parent);
}
Ok(())
}
Expand Down

0 comments on commit 181299b

Please sign in to comment.