Skip to content

Commit bbede8b

Browse files
author
Ludo Galabru
committed
fix: build error
1 parent a04711a commit bbede8b

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

components/ordhook-core/src/core/pipeline/mod.rs

-11
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ use chainhook_sdk::indexer::bitcoin::{
1919
use super::protocol::inscription_parsing::parse_inscriptions_and_standardize_block;
2020

2121
pub enum PostProcessorCommand {
22-
Start,
2322
ProcessBlocks(Vec<(u64, LazyBlock)>, Vec<BitcoinBlockData>),
2423
Terminate,
2524
}
2625

2726
pub enum PostProcessorEvent {
28-
Started,
2927
Terminated,
3028
Expired,
3129
}
@@ -150,7 +148,6 @@ pub async fn download_and_pipeline_blocks(
150148
let mut inbox = HashMap::new();
151149
let mut inbox_cursor = start_sequencing_blocks_at_height.max(start_block);
152150
let mut blocks_processed = 0;
153-
let mut processor_started = false;
154151
let mut stop_runloop = false;
155152

156153
loop {
@@ -194,13 +191,6 @@ pub async fn download_and_pipeline_blocks(
194191
continue;
195192
}
196193

197-
if let Some(ref blocks_tx) = blocks_post_processor_commands_tx {
198-
if !processor_started {
199-
processor_started = true;
200-
let _ = blocks_tx.send(PostProcessorCommand::Start);
201-
}
202-
}
203-
204194
let mut ooo_compacted_blocks = vec![];
205195
for (block_height, block_opt, compacted_block) in new_blocks.into_iter() {
206196
if let Some(block) = block_opt {
@@ -296,7 +286,6 @@ pub async fn download_and_pipeline_blocks(
296286
if let Ok(signal) = post_processor.events_rx.recv() {
297287
match signal {
298288
PostProcessorEvent::Terminated | PostProcessorEvent::Expired => break,
299-
PostProcessorEvent::Started => unreachable!(),
300289
}
301290
}
302291
}

components/ordhook-core/src/core/protocol/inscription_sequencing.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,19 @@ pub fn parallelize_inscription_data_computations(
134134
}
135135
}
136136

137+
let next_block_heights = next_blocks
138+
.iter()
139+
.map(|b| format!("{}", b.block_identifier.index))
140+
.collect::<Vec<_>>();
141+
137142
ctx.try_log(|logger| {
138143
info!(
139144
logger,
140-
"Number of inscriptions in block #{} to process: {} (L1 cache hits: {}, queue len: {}, L1 cache len: {}, L2 cache len: {})",
145+
"Number of inscriptions in block #{} to process: {} (L1 cache hits: {}, queue: [{}], L1 cache len: {}, L2 cache len: {})",
141146
block.block_identifier.index,
142147
transactions_ids.len(),
143148
l1_cache_hits.len(),
144-
next_blocks.len(),
149+
next_block_heights.join(", "),
145150
cache_l1.len(),
146151
cache_l2.len(),
147152
)

0 commit comments

Comments
 (0)