PeerDAS: Refactor reconstruction and improve DataColumnStorage.Get. (#15309)

* PeerDAS: Refactor reconstruction.

* DB Columns filesystem: Add missing tests and exit early in `Get`.

* Add changelog.

* Fix Preston's comment.

* Fix `TestDataColumnsAlignWithBlock`.
This commit is contained in:
Manu NALEPA
2025-05-23 15:22:53 +02:00
committed by GitHub
parent 58f08672c0
commit 58b5aac201
21 changed files with 951 additions and 478 deletions

View File

@@ -403,6 +403,11 @@ func (dcs *DataColumnStorage) Get(root [fieldparams.RootLength]byte, indices []u
return nil, nil
}
// Exit early if no data column sidecars for this root is stored.
if !summary.HasAtLeastOneIndex(indices) {
return nil, nil
}
// Compute the file path.
filePath := filePath(root, summary.epoch)