From 2275cdfeb8e8d823fcf1af2f67884695c475e4a7 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 27 Nov 2019 13:26:44 -0700 Subject: [PATCH] fix child filter in get_head --- specs/core/0_fork-choice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_fork-choice.md b/specs/core/0_fork-choice.md index c9a5c90d6..d62b04169 100644 --- a/specs/core/0_fork-choice.md +++ b/specs/core/0_fork-choice.md @@ -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, # add to filtered block-tree and signal viability to parent. if any(children): - if any(filter_block_tree(store, child, blocks) for child in children): + if True in [filter_block_tree(store, child, blocks) for child in children]: blocks[block_root] = block return True return False