Skip to content

Commit

Permalink
Stuck lookup v6 (#6658)
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 193c7f8
Author: dapplion <[email protected]>
Date:   Thu Dec 5 09:32:57 2024 +0800

    Fix stuck lookups if no peers on v6
  • Loading branch information
michaelsproul committed Dec 5, 2024
1 parent 3e1e27b commit 15dbd08
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ impl<T: BeaconChainTypes> SingleBlockLookup<T> {
self.awaiting_parent.is_some()
|| self.block_request_state.state.is_awaiting_event()
|| match &self.component_requests {
ComponentRequests::WaitingForBlock => true,
// If components are waiting for the block request to complete, here we should
// check if the`block_request_state.state.is_awaiting_event(). However we already
// checked that above, so `WaitingForBlock => false` is equivalent.
ComponentRequests::WaitingForBlock => false,
ComponentRequests::ActiveBlobRequest(request, _) => {
request.state.is_awaiting_event()
}
Expand Down

0 comments on commit 15dbd08

Please sign in to comment.