Skip to content

Commit

Permalink
save the block
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Aug 31, 2024
1 parent bd58c5c commit 8e5250e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sync/src/tasks/block_sync_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ where
if block_header.number() % 100000 == 0
|| block_header.number() >= self.target.target_id.number()
{
if self.sync_dag_store.get_dag_sync_block(block_header.number(), block_header.id()).is_err() {
self.sync_dag_store.save_block(block.clone())?;
}
let parallel_execute = DagBlockSender::new(
self.sync_dag_store.clone(),
100000,
Expand Down

0 comments on commit 8e5250e

Please sign in to comment.