fix compile errors

This commit is contained in:
realbigsean
2022-11-28 12:16:45 -05:00
parent 6d7235f2c8
commit e962e80bb4
2 changed files with 3 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
// Take all blocks with slots less than the oldest block slot.
let num_relevant =
blocks.partition_point(|block| block.slot() < acompare_and_set_anchor_infonchor_info.oldest_block_slot);
blocks.partition_point(|block| block.slot() < anchor_info.oldest_block_slot);
let blocks_to_import = &blocks
.get(..num_relevant)
.ok_or(HistoricalBlockError::IndexOutOfBounds)?;