Skip to content

Commit 775fa67

Browse files
authored
Stuck lookup v6 (#6658)
* Fix stuck lookups if no peers on v6 * Merge branch 'release-v6.0.1' into stuck-lookup-v6
1 parent 4946343 commit 775fa67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

beacon_node/network/src/sync/block_lookups/single_block_lookup.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ impl<T: BeaconChainTypes> SingleBlockLookup<T> {
171171
self.awaiting_parent.is_some()
172172
|| self.block_request_state.state.is_awaiting_event()
173173
|| match &self.component_requests {
174-
ComponentRequests::WaitingForBlock => true,
174+
// If components are waiting for the block request to complete, here we should
175+
// check if the`block_request_state.state.is_awaiting_event(). However we already
176+
// checked that above, so `WaitingForBlock => false` is equivalent.
177+
ComponentRequests::WaitingForBlock => false,
175178
ComponentRequests::ActiveBlobRequest(request, _) => {
176179
request.state.is_awaiting_event()
177180
}

0 commit comments

Comments
 (0)