Skip to content

Commit a8988ba

Browse files
author
Ludo Galabru
committed
fix: off by one issue
1 parent 577f1c2 commit a8988ba

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

884884
let end_block = match bitcoin_rpc.get_blockchain_info() {
885-
Ok(result) => result.blocks,
885+
Ok(result) => result.blocks.saturating_sub(1),
886886
Err(e) => {
887887
return Err(format!(
888888
"unable to retrieve Bitcoin chain tip ({})",

0 commit comments

Comments
 (0)