add pawan's suggestsion

This commit is contained in:
sean 2022-12-28 18:27:21 +00:00
parent 8a70d80a2f
commit 40c6daa34b

View File

@ -188,7 +188,11 @@ impl<T: BeaconChainTypes> Worker<T> {
let end_slot = downloaded_blocks.last().map(|b| b.slot().as_u64()); let end_slot = downloaded_blocks.last().map(|b| b.slot().as_u64());
let sent_blocks = downloaded_blocks.len(); let sent_blocks = downloaded_blocks.len();
let unwrapped = downloaded_blocks.into_iter().map(|_| todo!()).collect(); let unwrapped = downloaded_blocks
.into_iter()
//FIXME(sean) handle blobs in backfill
.map(|block| block.block_cloned())
.collect();
match self.process_backfill_blocks(unwrapped) { match self.process_backfill_blocks(unwrapped) {
(_, Ok(_)) => { (_, Ok(_)) => {