mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-04-29 12:15:04 +08:00
fix: off by one error
This commit is contained in:
@@ -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 ({})",
|
||||
|
||||
Reference in New Issue
Block a user