Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed May 9, 2023
1 parent 2c2fd5e commit 240cdd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verification/contextual/src/contextual_block_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ckb_chain_spec::{
use ckb_dao::DaoCalculator;
use ckb_dao_utils::DaoError;
use ckb_error::{Error, InternalErrorKind};
use ckb_logger::error_target;
use ckb_logger::{debug, error_target};
use ckb_merkle_mountain_range::MMRStore;
use ckb_reward_calculator::RewardCalculator;
use ckb_store::{data_loader_wrapper::AsDataLoader, ChainStore};
Expand Down Expand Up @@ -690,13 +690,15 @@ impl<'a, CS: ChainStore + VersionbitsIndexer + 'static, MS: MMRStore<HeaderDiges

BlockExtensionVerifier::new(&self.context, self.chain_root_mmr, &parent).verify(block)?;

let log_now = std::time::Instant::now();
let ret = BlockTxsVerifier::new(
self.context.clone(),
header,
self.handle,
&self.txs_verify_cache,
)
.verify(resolved, self.switch.disable_script())?;
debug!("BlockTxsVerifier cost: {:?}", log_now.elapsed());
Ok(ret)
}
}

0 comments on commit 240cdd7

Please sign in to comment.