Skip to content

Commit

Permalink
fix: parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jul 22, 2023
1 parent 57a46ec commit 1f047a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/hord-cli/src/db/mod.rs
Expand Up @@ -7,7 +7,7 @@ use std::{

use chainhook_sdk::{
indexer::bitcoin::{
build_http_client, download_block_with_retry, retrieve_block_hash_with_retry, try_fetch_block_bytes_with_retry, parse_downloaded_block,
build_http_client, download_block_with_retry, retrieve_block_hash_with_retry, try_fetch_block_bytes_with_retry, parse_fetched_block,
},
types::{
BitcoinBlockData, BlockIdentifier, OrdinalInscriptionRevealData,
Expand Down Expand Up @@ -1905,7 +1905,7 @@ pub async fn rebuild_rocks_db(
while let Ok(Some(block_bytes)) = block_data_rx.recv() {
let block_compressed_tx_moved = block_compressed_tx.clone();
compress_block_data_pool.execute(move || {
let block_data = parse_downloaded_block(block_bytes).unwrap();
let block_data = parse_fetched_block(block_bytes).unwrap();
let compressed_block =
LazyBlock::from_full_block(&block_data).expect("unable to serialize block");
let block_index = block_data.height as u32;
Expand Down

0 comments on commit 1f047a9

Please sign in to comment.