Skip to content

Commit

Permalink
use req resp pre import cache rather than da checker
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed May 1, 2024
1 parent 4a23356 commit 5db3e1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion beacon_node/network/src/sync/network_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,12 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
peer_id: PeerId,
block_root: Hash256,
) -> Result<bool, &'static str> {
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);
}

Expand Down

0 comments on commit 5db3e1b

Please sign in to comment.