mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 12:14:19 +00:00
Update specs/core/0_fork-choice.md
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
This commit is contained in:
parent
8021f34c06
commit
5aa9f96558
@ -149,7 +149,7 @@ def filter_block_tree(store: Store, block_root: Root, blocks: Dict[Root, BeaconB
|
|||||||
# If any children branches contain expected finalized/justified checkpoints,
|
# If any children branches contain expected finalized/justified checkpoints,
|
||||||
# add to filtered block-tree and signal viability to parent.
|
# add to filtered block-tree and signal viability to parent.
|
||||||
if any(children):
|
if any(children):
|
||||||
if True in [filter_block_tree(store, child, blocks) for child in children]:
|
if any(filter_block_tree(store, child, blocks) for child in children):
|
||||||
blocks[block_root] = block
|
blocks[block_root] = block
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user