diff --git a/sync/src/tasks/block_sync_task.rs b/sync/src/tasks/block_sync_task.rs index b143d39318..4c27cecf9d 100644 --- a/sync/src/tasks/block_sync_task.rs +++ b/sync/src/tasks/block_sync_task.rs @@ -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(()) }