File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
beacon_node/network/src/sync/block_lookups Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
237
237
238
238
/// Searches for a single block hash. If the blocks parent is unknown, a chain of blocks is
239
239
/// constructed.
240
- /// Returns true if the lookup is created or already exists
240
+ /// Returns true if the lookup is created, already exists, or was already completed.
241
241
fn new_current_lookup (
242
242
& mut self ,
243
243
block_root : Hash256 ,
@@ -249,7 +249,7 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
249
249
) -> bool {
250
250
// If the lookup is complete, don't create a new one.
251
251
if self . completed_lookups . contains ( & block_root) {
252
- return false ;
252
+ return true ;
253
253
}
254
254
255
255
// If this block or it's parent is part of a known failed chain, ignore it.
You can’t perform that action at this time.
0 commit comments