Skip to content

Commit 3832cf9

Browse files
author
Ludo Galabru
committed
fix: off by one error
1 parent 5ff9906 commit 3832cf9

File tree

1 file changed

+1
-1
lines changed
  • components/hord-cli/src/core

1 file changed

+1
-1
lines changed

components/hord-cli/src/core/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ pub fn should_sync_hord_db(config: &Config, ctx: &Context) -> Result<Option<(u64
224224
};
225225

226226
let end_block = match bitcoin_rpc.get_blockchain_info() {
227-
Ok(result) => result.blocks.saturating_sub(1),
227+
Ok(result) => result.blocks,
228228
Err(e) => {
229229
return Err(format!(
230230
"unable to retrieve Bitcoin chain tip ({})",

0 commit comments

Comments
 (0)