ease out sync data column consistency conditions
This commit is contained in:
parent
fc8f3e0ea7
commit
1e45eb6256
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue