Skip to content

Commit

Permalink
Merge pull request #13 from ckb-cell/bugfix/break-when-found-fork-point
Browse files Browse the repository at this point in the history
fix: should break when the fork point is found
  • Loading branch information
yangby-cryptape authored Apr 3, 2024
2 parents ceab665 + 755297f commit 7c3a8ae
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 7c3a8ae

Please sign in to comment.