fix: off by one issue

This commit is contained in:
Ludo Galabru
2023-07-07 00:07:56 -04:00
parent 577f1c237e
commit a8988ba573

View File

@@ -882,7 +882,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,
Ok(result) => result.blocks.saturating_sub(1),
Err(e) => {
return Err(format!(
"unable to retrieve Bitcoin chain tip ({})",