ease out sync data column consistency conditions

This commit is contained in:
Agnish Ghosh 2024-10-15 18:28:14 +05:30
parent fc8f3e0ea7
commit 1e45eb6256
1 changed files with 0 additions and 2 deletions

View File

@ -362,8 +362,6 @@ func groupDataColumns*[T](req: SyncRequest[T],
let header = forkyBlck.toSignedBeaconBlockHeader()
for column_idx in 0..<data_columns.len:
let data_column_sidecar = data_columns[column_cursor]
if data_column_sidecar.index != ColumnIndex column_idx:
return err("DataColumnSidecar: invalid index")
if data_column_sidecar.signed_block_header != header:
return err("DataColumnSidecar: unexpected signed_block_header")
grouped[block_idx].add(data_column_sidecar)