mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-01 05:37:05 +00:00
Add Gloas data column support (#8682)
Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com>
This commit is contained in:
@@ -346,7 +346,7 @@ impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
|
||||
for column in data_columns {
|
||||
let block_root = column.block_root();
|
||||
let index = column.index;
|
||||
let index = *column.index();
|
||||
if data_columns_by_block
|
||||
.entry(block_root)
|
||||
.or_default()
|
||||
@@ -624,7 +624,7 @@ mod tests {
|
||||
*req,
|
||||
blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.1.iter().filter(|d| d.index == column_index).cloned())
|
||||
.flat_map(|b| b.1.iter().filter(|d| *d.index() == column_index).cloned())
|
||||
.collect(),
|
||||
)
|
||||
.unwrap();
|
||||
@@ -707,7 +707,7 @@ mod tests {
|
||||
.iter()
|
||||
.flat_map(|b| {
|
||||
b.1.iter()
|
||||
.filter(|d| column_indices.contains(&d.index))
|
||||
.filter(|d| column_indices.contains(d.index()))
|
||||
.cloned()
|
||||
})
|
||||
.collect::<Vec<_>>(),
|
||||
@@ -779,7 +779,7 @@ mod tests {
|
||||
*req,
|
||||
blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.1.iter().filter(|d| d.index == column_index).cloned())
|
||||
.flat_map(|b| b.1.iter().filter(|d| *d.index() == column_index).cloned())
|
||||
.collect(),
|
||||
)
|
||||
.unwrap();
|
||||
@@ -864,7 +864,7 @@ mod tests {
|
||||
*req1,
|
||||
blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.1.iter().filter(|d| d.index == 1).cloned())
|
||||
.flat_map(|b| b.1.iter().filter(|d| *d.index() == 1).cloned())
|
||||
.collect(),
|
||||
)
|
||||
.unwrap();
|
||||
@@ -891,7 +891,7 @@ mod tests {
|
||||
new_columns_req_id,
|
||||
blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.1.iter().filter(|d| d.index == 2).cloned())
|
||||
.flat_map(|b| b.1.iter().filter(|d| *d.index() == 2).cloned())
|
||||
.collect(),
|
||||
)
|
||||
.unwrap();
|
||||
@@ -957,7 +957,7 @@ mod tests {
|
||||
*req1,
|
||||
blocks
|
||||
.iter()
|
||||
.flat_map(|b| b.1.iter().filter(|d| d.index == 1).cloned())
|
||||
.flat_map(|b| b.1.iter().filter(|d| *d.index() == 1).cloned())
|
||||
.collect(),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user