We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417963f commit 07d282fCopy full SHA for 07d282f
crates/electrum/src/electrum_ext.rs
@@ -305,7 +305,7 @@ fn construct_update_tip(
305
// Atomically fetch the latest `ASSUME_FINAL_DEPTH` count of blocks from Electrum. We use this
306
// to construct our checkpoint update.
307
let mut new_blocks = {
308
- let start_height = new_tip_height.saturating_sub(ASSUME_FINAL_DEPTH);
+ let start_height = (new_tip_height + 1).saturating_sub(ASSUME_FINAL_DEPTH);
309
let hashes = client
310
.block_headers(start_height as _, ASSUME_FINAL_DEPTH as _)?
311
.headers
0 commit comments