@@ -33,8 +33,6 @@ pub enum ChainSegmentProcessId {
33
33
RangeBatchId ( ChainId , Epoch ) ,
34
34
/// Processing ID for a backfill syncing batch.
35
35
BackSyncBatchId ( Epoch ) ,
36
- /// Processing Id of the parent lookup of a block.
37
- ParentLookup ( Hash256 ) ,
38
36
}
39
37
40
38
/// Returned when a chain segment import fails.
@@ -396,41 +394,6 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
396
394
}
397
395
}
398
396
}
399
- // this is a parent lookup request from the sync manager
400
- ChainSegmentProcessId :: ParentLookup ( chain_head) => {
401
- debug ! (
402
- self . log, "Processing parent lookup" ;
403
- "chain_hash" => %chain_head,
404
- "blocks" => downloaded_blocks. len( )
405
- ) ;
406
- // parent blocks are ordered from highest slot to lowest, so we need to process in
407
- // reverse
408
- match self
409
- . process_blocks ( downloaded_blocks. iter ( ) . rev ( ) , notify_execution_layer)
410
- . await
411
- {
412
- ( imported_blocks, Err ( e) ) => {
413
- debug ! ( self . log, "Parent lookup failed" ; "error" => %e. message) ;
414
- match e. peer_action {
415
- Some ( penalty) => BatchProcessResult :: FaultyFailure {
416
- imported_blocks : imported_blocks > 0 ,
417
- penalty,
418
- } ,
419
- None => BatchProcessResult :: NonFaultyFailure ,
420
- }
421
- }
422
- ( imported_blocks, Ok ( _) ) => {
423
- debug ! (
424
- self . log, "Parent lookup processed successfully" ;
425
- "chain_hash" => %chain_head,
426
- "imported_blocks" => imported_blocks
427
- ) ;
428
- BatchProcessResult :: Success {
429
- was_non_empty : imported_blocks > 0 ,
430
- }
431
- }
432
- }
433
- }
434
397
} ;
435
398
436
399
self . send_sync_message ( SyncMessage :: BatchProcessed { sync_type, result } ) ;
0 commit comments