From ea483908b6f52f1d4e3322c963b9d269d189175d Mon Sep 17 00:00:00 2001 From: Eitan Seri-Levi Date: Sun, 24 May 2026 16:17:29 +0300 Subject: [PATCH] tweak --- .../src/sync/custody_backfill_sync/mod.rs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/beacon_node/network/src/sync/custody_backfill_sync/mod.rs b/beacon_node/network/src/sync/custody_backfill_sync/mod.rs index c85610613c..7daf2a47d3 100644 --- a/beacon_node/network/src/sync/custody_backfill_sync/mod.rs +++ b/beacon_node/network/src/sync/custody_backfill_sync/mod.rs @@ -6,7 +6,7 @@ use std::{ use beacon_chain::{BeaconChain, BeaconChainTypes}; use lighthouse_network::{ - NetworkGlobals, PeerAction, PeerId, + NetworkGlobals, PeerId, service::api_types::{CustodyBackFillBatchRequestId, CustodyBackfillBatchId}, types::CustodyBackFillState, }; @@ -601,21 +601,13 @@ impl CustodyBackFillSync { exceeded_retries: _, } = coupling_error { - let mut failed_peers = HashSet::new(); - for (column_index, faulty_peer) in faulty_peers { + let unique_faulty_peers: HashSet = + faulty_peers.iter().map(|(_, peer)| *peer).collect(); + for faulty_peer in unique_faulty_peers { debug!( ?error, - ?column_index, ?faulty_peer, - "Custody backfill sync: peer failed to serve column" - ); - failed_peers.insert(faulty_peer); - } - for peer in failed_peers { - network.report_peer( - peer, - PeerAction::LowToleranceError, - "Peer failed to serve column", + "Custody backfill sync: peer failed to serve columns (not penalizing)" ); } }