From 64246b15c3611c60cec1f052f9cf65387d0552a4 Mon Sep 17 00:00:00 2001 From: jackzhhuang Date: Tue, 19 Mar 2024 15:21:23 +0800 Subject: [PATCH] no difficulty when sync --- sync/src/tasks/block_sync_task.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sync/src/tasks/block_sync_task.rs b/sync/src/tasks/block_sync_task.rs index f5521d7217..7a4a896cf0 100644 --- a/sync/src/tasks/block_sync_task.rs +++ b/sync/src/tasks/block_sync_task.rs @@ -528,12 +528,12 @@ where block.id(), block.header().number() ); - let executed_block = if self.skip_pow_verify { - self.chain - .apply_with_verifier::(block.clone())? - } else { - self.chain.apply(block.clone())? - }; + // let executed_block = if self.skip_pow_verify { + let executed_block = self.chain + .apply_with_verifier::(block.clone())?; + // } else { + // self.chain.apply(block.clone())? + // }; // let executed_block = self.chain.apply(block)?; info!( "succeed to apply a dag block: {:?}, number: {:?}",