Skip to content

Commit

Permalink
fix: should break when the fork point is found
Browse files Browse the repository at this point in the history
  • Loading branch information
yangby-cryptape committed Apr 2, 2024
1 parent ceab665 commit 755297f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/spv_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 755297f

Please sign in to comment.