Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ancestor parents must be in an order from small ones to the larger
  • Loading branch information
jackzhhuang committed Mar 19, 2024
1 parent 64246b1 commit 2c6f373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync/src/tasks/block_sync_task.rs
Expand Up @@ -479,6 +479,7 @@ where
.find_ancestor_dag_block_header(vec![block_header.clone()])
.await?;

dag_ancestors.reverse();
while !dag_ancestors.is_empty() {
for ancestor_block_header_id in &dag_ancestors {
if self.chain.has_dag_block(*ancestor_block_header_id)? {
Expand Down

0 comments on commit 2c6f373

Please sign in to comment.