@@ -616,28 +616,29 @@ impl<T: BeaconChainTypes> BackFillSync<T> {
616616 penalty,
617617 faulty_component,
618618 } => {
619- let Some ( batch_peers) = batch. processing_peers ( ) else {
620- error ! ( ?batch_id, "Responsible peers not found for a failed batch" ) ;
621- return self
622- . fail_sync ( BackFillError :: BatchProcessingFailed ( batch_id) )
623- . map ( |_| ProcessResult :: Successful ) ;
624- } ;
625- // Penalize the peer appropriately.
626- match faulty_component {
627- Some ( FaultyComponent :: Blocks ) | Some ( FaultyComponent :: Blobs ) => {
628- network. report_peer ( batch_peers. block_and_blob , * penalty, "faulty_batch" ) ;
629- }
630- // todo(pawan): clean this up
631- Some ( FaultyComponent :: Columns ( faulty_columns) ) => {
632- for ( peer, columns) in batch_peers. data_columns . iter ( ) {
633- for faulty_column in faulty_columns {
634- if columns. contains ( faulty_column) {
635- network. report_peer ( * peer, * penalty, "faulty_batch" ) ;
619+ if let Some ( batch_peers) = batch. processing_peers ( ) {
620+ // Penalize the peer appropriately.
621+ match faulty_component {
622+ Some ( FaultyComponent :: Blocks ) | Some ( FaultyComponent :: Blobs ) => {
623+ network. report_peer (
624+ batch_peers. block_and_blob ,
625+ * penalty,
626+ "faulty_batch" ,
627+ ) ;
628+ }
629+ Some ( FaultyComponent :: Columns ( faulty_columns) ) => {
630+ for ( peer, columns) in batch_peers. data_columns . iter ( ) {
631+ for faulty_column in faulty_columns {
632+ if columns. contains ( faulty_column) {
633+ network. report_peer ( * peer, * penalty, "faulty_batch" ) ;
634+ }
636635 }
637636 }
638637 }
638+ None => { }
639639 }
640- None => { }
640+ } else {
641+ warn ! ( ?batch_id, "Responsible peers not found for a failed batch" ) ;
641642 }
642643 match batch. processing_completed ( BatchProcessingResult :: FaultyFailure ) {
643644 Err ( e) => {
0 commit comments