From 755297fbab1c231618cd93fafe57aaba751b037d Mon Sep 17 00:00:00 2001 From: Boyu Yang Date: Tue, 2 Apr 2024 21:33:26 +0800 Subject: [PATCH] fix: should break when the fork point is found --- src/components/spv_service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/spv_service.rs b/src/components/spv_service.rs index 8f87f74..ed962fb 100644 --- a/src/components/spv_service.rs +++ b/src/components/spv_service.rs @@ -175,6 +175,7 @@ impl SpvService { if stg_hash == btc_hash { log::info!("Fork happened at height {height}"); fork_point = Some((height, btc_hash)); + break; } }