mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
fix compile errors
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user