PeerDAS: Implement the validation pipeline for data column sidecars received via gossip (#15310)

* PeerDAS: Implement the validation pipeline for data column sidecars received via gossip

* Fix Terence's comment

* Fix Terence's comment.

* Fix Terence's comment.
This commit is contained in:
Manu NALEPA
2025-05-26 00:31:09 +02:00
committed by GitHub
parent f8d895a5ed
commit 00204ffa6a
18 changed files with 699 additions and 8 deletions

View File

@@ -37,10 +37,12 @@ func NewRODataColumn(dc *ethpb.DataColumnSidecar) (RODataColumn, error) {
if err := roDataColumnNilCheck(dc); err != nil {
return RODataColumn{}, err
}
root, err := dc.SignedBlockHeader.Header.HashTreeRoot()
if err != nil {
return RODataColumn{}, err
}
return RODataColumn{DataColumnSidecar: dc, root: root}, nil
}