From 5db3e1b5e5ed91886cad9931b6905282c40fe858 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Wed, 1 May 2024 09:52:44 -0400 Subject: [PATCH] use req resp pre import cache rather than da checker --- beacon_node/network/src/sync/network_context.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beacon_node/network/src/sync/network_context.rs b/beacon_node/network/src/sync/network_context.rs index b4ce01d7d2a..88495a5b350 100644 --- a/beacon_node/network/src/sync/network_context.rs +++ b/beacon_node/network/src/sync/network_context.rs @@ -306,7 +306,12 @@ impl SyncNetworkContext { peer_id: PeerId, block_root: Hash256, ) -> Result { - if self.chain.data_availability_checker.has_block(&block_root) { + if self + .chain + .reqresp_pre_import_cache + .read() + .contains_key(&block_root) + { return Ok(false); }