fixup! Debug tests

This commit is contained in:
Emilia Hane
2023-01-22 01:27:59 +01:00
parent 7220f35ff6
commit 16cb9cfca2
5 changed files with 54 additions and 62 deletions

View File

@@ -282,10 +282,13 @@ impl<T: BeaconChainTypes> Worker<T> {
count_unrealized: CountUnrealized,
notify_execution_layer: NotifyExecutionLayer,
) -> (usize, Result<(), ChainSegmentFailed>) {
let blocks: Vec<_> = downloaded_blocks.cloned().collect();
let blocks: Vec<_> = downloaded_blocks
.cloned()
.map(|block| block.into())
.collect();
match self
.chain
.process_chain_segment(blocks.into(), count_unrealized, notify_execution_layer)
.process_chain_segment(blocks, count_unrealized, notify_execution_layer)
.await
{
ChainSegmentResult::Successful { imported_blocks } => {