mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 21:27:12 +00:00
Gloas fork choice redux (#9025)
Co-Authored-By: hopinheimer <knmanas6@gmail.com> Co-Authored-By: Michael Sproul <michael@sigmaprime.io> Co-Authored-By: hopinheimer <48147533+hopinheimer@users.noreply.github.com> Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com> Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com> Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com> Co-Authored-By: Daniel Knopik <107140945+dknopik@users.noreply.github.com>
This commit is contained in:
@@ -23,9 +23,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
// Only check blocks that are descendants of the finalized checkpoint.
|
||||
// Pruned non-canonical fork blocks may linger in the proto-array but
|
||||
// are legitimately absent from the database.
|
||||
fc.is_finalized_checkpoint_or_descendant(node.root)
|
||||
fc.is_finalized_checkpoint_or_descendant(node.root())
|
||||
})
|
||||
.map(|node| (node.root, node.slot))
|
||||
.map(|node| (node.root(), node.slot()))
|
||||
.collect()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user