Return early if there's no block for data column sidecar (#15802)

This commit is contained in:
terence
2025-10-02 19:59:26 -07:00
committed by GitHub
parent bf1095c782
commit 1f89394727
2 changed files with 7 additions and 0 deletions

View File

@@ -93,6 +93,10 @@ func (s *Service) sendBeaconBlocksRequest(ctx context.Context, requests *types.B
// requestAndSaveMissingDataColumns checks if the data columns are missing for the given block.
// If so, requests them and saves them to the storage.
func (s *Service) requestAndSaveMissingDataColumnSidecars(blks []blocks.ROBlock) error {
if len(blks) == 0 {
return nil
}
samplesPerSlot := params.BeaconConfig().SamplesPerSlot
custodyGroupCount, err := s.cfg.p2p.CustodyGroupCount()

View File

@@ -0,0 +1,3 @@
### Ignored
- Return early if there's no block for `requestAndSaveMissingDataColumnSidecars`