mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-01 20:04:41 +00:00
Refactor Custody Context Availability Checks (#9515)
Co-Authored-By: Mark Mackey <mark@sigmaprime.io>
This commit is contained in:
@@ -602,7 +602,9 @@ mod tests {
|
||||
"precondition: test block must not be imported into fork choice yet"
|
||||
);
|
||||
|
||||
let sampling_columns = chain.sampling_columns_for_epoch(block.epoch());
|
||||
let sampling_columns = chain
|
||||
.custody_context
|
||||
.sampling_columns_for_epoch(block.epoch());
|
||||
let data_columns = generate_data_column_sidecars_from_block(&block, &chain.spec)
|
||||
.into_iter()
|
||||
.filter(|column| sampling_columns.contains(column.index()))
|
||||
@@ -615,8 +617,7 @@ mod tests {
|
||||
let available_block = AvailableBlock::new(
|
||||
block.clone(),
|
||||
AvailableBlockData::new_with_data_columns(data_columns),
|
||||
&chain.data_availability_checker,
|
||||
chain.spec.clone(),
|
||||
&chain.custody_context,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user