Skip to content

Commit

Permalink
Check da_checker before doing a block lookup request (sigp#5681)
Browse files Browse the repository at this point in the history
* Check da_checker before doing a block lookup request

* Ensure consistent handling of lookup result

* use req resp pre import cache rather than da checker
  • Loading branch information
dapplion authored and ethDreamer committed May 3, 2024
1 parent 5cca3bf commit 618f2d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion beacon_node/network/src/sync/block_lookups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
Ok(LookupResult::Completed)
}
}
Ok(())
}

/// Makes progress on the immediate children of `block_root`
Expand Down
11 changes: 0 additions & 11 deletions beacon_node/network/src/sync/block_lookups/single_block_lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,3 @@ impl<T: Clone> std::fmt::Display for State<T> {
}
}
}

impl LookupRequestError {
pub(crate) fn as_metric(&self) -> &'static str {
match self {
LookupRequestError::TooManyAttempts { .. } => "TooManyAttempts",
LookupRequestError::NoPeers => "NoPeers",
LookupRequestError::SendFailed { .. } => "SendFailed",
LookupRequestError::BadState { .. } => "BadState",
}
}
}

0 comments on commit 618f2d8

Please sign in to comment.