mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user