Do not request current child lookup peers (#5724)

* Do not request current child lookup peers

* Update tests
This commit is contained in:
Lion - dapplion
2024-05-13 18:13:32 +03:00
committed by GitHub
parent 93e0649abc
commit f37ffe4b8d
3 changed files with 197 additions and 288 deletions

View File

@@ -134,7 +134,10 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
block_root,
Some(block_component),
Some(parent_root),
&[peer_id],
// On a `UnknownParentBlock` or `UnknownParentBlob` event the peer is not required
// to have the rest of the block components (refer to decoupled blob gossip). Create
// the lookup with zero peers to house the block components.
&[],
cx,
);
}