@@ -19,13 +19,11 @@ use chainhook_sdk::indexer::bitcoin::{
19
19
use super :: protocol:: inscription_parsing:: parse_inscriptions_and_standardize_block;
20
20
21
21
pub enum PostProcessorCommand {
22
- Start ,
23
22
ProcessBlocks ( Vec < ( u64 , LazyBlock ) > , Vec < BitcoinBlockData > ) ,
24
23
Terminate ,
25
24
}
26
25
27
26
pub enum PostProcessorEvent {
28
- Started ,
29
27
Terminated ,
30
28
Expired ,
31
29
}
@@ -150,7 +148,6 @@ pub async fn download_and_pipeline_blocks(
150
148
let mut inbox = HashMap :: new ( ) ;
151
149
let mut inbox_cursor = start_sequencing_blocks_at_height. max ( start_block) ;
152
150
let mut blocks_processed = 0 ;
153
- let mut processor_started = false ;
154
151
let mut stop_runloop = false ;
155
152
156
153
loop {
@@ -194,13 +191,6 @@ pub async fn download_and_pipeline_blocks(
194
191
continue ;
195
192
}
196
193
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
-
204
194
let mut ooo_compacted_blocks = vec ! [ ] ;
205
195
for ( block_height, block_opt, compacted_block) in new_blocks. into_iter ( ) {
206
196
if let Some ( block) = block_opt {
@@ -296,7 +286,6 @@ pub async fn download_and_pipeline_blocks(
296
286
if let Ok ( signal) = post_processor. events_rx . recv ( ) {
297
287
match signal {
298
288
PostProcessorEvent :: Terminated | PostProcessorEvent :: Expired => break ,
299
- PostProcessorEvent :: Started => unreachable ! ( ) ,
300
289
}
301
290
}
302
291
}
0 commit comments