Skip to content

Commit

Permalink
add log for tracing the slow process
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Oct 17, 2024
1 parent f5287f6 commit cb41acc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sync/src/tasks/block_sync_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,13 @@ where
parallel_execute.process_absent_blocks().await?;
anyhow::Ok(ParallelSign::Continue)
} else {
info!("save the block into the local dag sync block db");
self.local_store
.save_dag_sync_block(starcoin_storage::block::DagSyncBlock {
block: block.clone(),
children: vec![],
})?;
info!("save the block into the sorted dag sync block db");
self.sync_dag_store.save_block(block)?;
anyhow::Ok(ParallelSign::NeedMoreBlocks)
}
Expand Down

0 comments on commit cb41acc

Please sign in to comment.