diff --git a/sync/src/synchronizer/mod.rs b/sync/src/synchronizer/mod.rs index aa3f2cc181..83aa1213c3 100644 --- a/sync/src/synchronizer/mod.rs +++ b/sync/src/synchronizer/mod.rs @@ -680,6 +680,11 @@ impl Synchronizer { return; } + if ckb_stop_handler::has_received_stop_signal() { + info!("received stop signal, stop find_blocks_to_fetch"); + return; + } + let unverified_tip = self.shared.active_chain().unverified_tip_number(); let disconnect_list = {