fix: off by one error

This commit is contained in:
Ludo Galabru
2023-08-02 12:17:49 +02:00
parent 5ff9906cbc
commit 3832cf9770

View File

@@ -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 ({})",