mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +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:
@@ -514,14 +514,14 @@ fn publish_column_sidecars<T: BeaconChainTypes>(
|
||||
data_column_sidecars.shuffle(&mut **chain.rng.lock());
|
||||
let dropped_indices = data_column_sidecars
|
||||
.drain(columns_to_keep..)
|
||||
.map(|d| d.index)
|
||||
.map(|d| *d.index())
|
||||
.collect::<Vec<_>>();
|
||||
debug!(indices = ?dropped_indices, "Dropping data columns from publishing");
|
||||
}
|
||||
let pubsub_messages = data_column_sidecars
|
||||
.into_iter()
|
||||
.map(|data_col| {
|
||||
let subnet = DataColumnSubnetId::from_column_index(data_col.index, &chain.spec);
|
||||
let subnet = DataColumnSubnetId::from_column_index(*data_col.index(), &chain.spec);
|
||||
PubsubMessage::DataColumnSidecar(Box::new((subnet, data_col)))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Reference in New Issue
Block a user