Skip to content

Commit

Permalink
Do not send column requests if there is no blob for the block. (#6814)
Browse files Browse the repository at this point in the history
* Do not send column requests if there is no blob for the block.

* Address review comments

* Replace fix - the previous solution didnt work.
  • Loading branch information
jimmygchen authored Jan 20, 2025
1 parent 06329ec commit 6ce33c4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ impl<T: BeaconChainTypes> SingleBlockLookup<T> {
let block_epoch = block.slot().epoch(T::EthSpec::slots_per_epoch());
if expected_blobs == 0 {
self.component_requests = ComponentRequests::NotNeeded("no data");
}
if cx.chain.should_fetch_blobs(block_epoch) {
} else if cx.chain.should_fetch_blobs(block_epoch) {
self.component_requests = ComponentRequests::ActiveBlobRequest(
BlobRequestState::new(self.block_root),
expected_blobs,
Expand Down

0 comments on commit 6ce33c4

Please sign in to comment.