Skip to content

Commit 07d282f

Browse files
committed
fix(electrum): fixed chain sync issue
1 parent 417963f commit 07d282f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/electrum/src/electrum_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn construct_update_tip(
305305
// Atomically fetch the latest `ASSUME_FINAL_DEPTH` count of blocks from Electrum. We use this
306306
// to construct our checkpoint update.
307307
let mut new_blocks = {
308-
let start_height = new_tip_height.saturating_sub(ASSUME_FINAL_DEPTH);
308+
let start_height = (new_tip_height + 1).saturating_sub(ASSUME_FINAL_DEPTH);
309309
let hashes = client
310310
.block_headers(start_height as _, ASSUME_FINAL_DEPTH as _)?
311311
.headers

0 commit comments

Comments
 (0)