Skip to content

Commit

Permalink
fix: off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Aug 2, 2023
1 parent 5ff9906 commit 3832cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/hord-cli/src/core/mod.rs
Expand Up @@ -224,7 +224,7 @@ pub fn should_sync_hord_db(config: &Config, ctx: &Context) -> Result<Option<(u64
};

let end_block = match bitcoin_rpc.get_blockchain_info() {
Ok(result) => result.blocks.saturating_sub(1),
Ok(result) => result.blocks,
Err(e) => {
return Err(format!(
"unable to retrieve Bitcoin chain tip ({})",
Expand Down

0 comments on commit 3832cf9

Please sign in to comment.