Skip to content

Commit

Permalink
fix the abent block
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Sep 18, 2024
1 parent 979cdd6 commit c5bd1fd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions sync/src/tasks/block_sync_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,13 @@ where
return Ok(());
}
for parent in parents {
if self.local_store.get_dag_sync_block(parent)?.is_none() {
if absent_blocks.contains(&parent) {
continue;
}
if self.chain.has_dag_block(parent)? {
continue;
}
absent_blocks.push(parent)
if absent_blocks.contains(&parent) {
continue;
}
if self.chain.has_dag_block(parent)? {
continue;
}
absent_blocks.push(parent);
}
Ok(())
}
Expand Down

0 comments on commit c5bd1fd

Please sign in to comment.