Skip to content

Commit 1f047a9

Browse files
author
Ludo Galabru
committed
fix: parsing
1 parent 57a46ec commit 1f047a9

File tree

1 file changed

+2
-2
lines changed
  • components/hord-cli/src/db

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77

88
use chainhook_sdk::{
99
indexer::bitcoin::{
10-
build_http_client, download_block_with_retry, retrieve_block_hash_with_retry, try_fetch_block_bytes_with_retry, parse_downloaded_block,
10+
build_http_client, download_block_with_retry, retrieve_block_hash_with_retry, try_fetch_block_bytes_with_retry, parse_fetched_block,
1111
},
1212
types::{
1313
BitcoinBlockData, BlockIdentifier, OrdinalInscriptionRevealData,
@@ -1905,7 +1905,7 @@ pub async fn rebuild_rocks_db(
19051905
while let Ok(Some(block_bytes)) = block_data_rx.recv() {
19061906
let block_compressed_tx_moved = block_compressed_tx.clone();
19071907
compress_block_data_pool.execute(move || {
1908-
let block_data = parse_downloaded_block(block_bytes).unwrap();
1908+
let block_data = parse_fetched_block(block_bytes).unwrap();
19091909
let compressed_block =
19101910
LazyBlock::from_full_block(&block_data).expect("unable to serialize block");
19111911
let block_index = block_data.height as u32;

0 commit comments

Comments
 (0)