Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no difficulty when sync
  • Loading branch information
jackzhhuang committed Mar 19, 2024
1 parent 1e67760 commit 64246b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sync/src/tasks/block_sync_task.rs
Expand Up @@ -528,12 +528,12 @@ where
block.id(),
block.header().number()
);
let executed_block = if self.skip_pow_verify {
self.chain
.apply_with_verifier::<DagBasicVerifier>(block.clone())?
} else {
self.chain.apply(block.clone())?
};
// let executed_block = if self.skip_pow_verify {
let executed_block = self.chain
.apply_with_verifier::<DagBasicVerifier>(block.clone())?;
// } else {
// self.chain.apply(block.clone())?
// };
// let executed_block = self.chain.apply(block)?;
info!(
"succeed to apply a dag block: {:?}, number: {:?}",
Expand Down

0 comments on commit 64246b1

Please sign in to comment.