diff --git a/chain/src/consume_unverified.rs b/chain/src/consume_unverified.rs index 85ea2a44dc..7cc6a308c7 100644 --- a/chain/src/consume_unverified.rs +++ b/chain/src/consume_unverified.rs @@ -68,13 +68,13 @@ impl ConsumeUnverifiedBlocks { pub(crate) fn start(mut self) { loop { - let _trace_begin_loop = minstant::Instant::now(); + let trace_begin_loop = minstant::Instant::now(); select! { recv(self.unverified_block_rx) -> msg => match msg { Ok(unverified_task) => { // process this unverified block if let Some(handle) = ckb_metrics::handle() { - handle.ckb_chain_consume_unverified_block_waiting_block_duration.observe(_trace_begin_loop.elapsed().as_secs_f64()) + handle.ckb_chain_consume_unverified_block_waiting_block_duration.observe(trace_begin_loop.elapsed().as_secs_f64()) } let _ = self.tx_pool_controller.suspend_chunk_process(); @@ -883,8 +883,6 @@ impl ConsumeUnverifiedBlockProcessor { self.shared.store_snapshot(Arc::clone(&new_snapshot)); - // NOTE: Dont update tx-pool when truncate - Ok(()) } }