Do not send column requests if there is no blob for the block. (#6814)

* Do not send column requests if there is no blob for the block.

* Address review comments

* Replace fix - the previous solution didnt work.
This commit is contained in:
Jimmy Chen
2025-01-20 20:07:47 +11:00
committed by GitHub
parent 06329ec2d1
commit 6ce33c4d1d

View File

@@ -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,