From fa1015ca03a681027beb9ecceb754e7e9d16709a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 4 Aug 2023 21:58:01 +0800 Subject: [PATCH] Update Capella FC too --- specs/capella/fork-choice.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/capella/fork-choice.md b/specs/capella/fork-choice.md index 87fec02f8..a830080c1 100644 --- a/specs/capella/fork-choice.md +++ b/specs/capella/fork-choice.md @@ -106,7 +106,8 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None: # Add proposer score boost if the block is timely time_into_slot = (store.time - store.genesis_time) % SECONDS_PER_SLOT is_before_attesting_interval = time_into_slot < SECONDS_PER_SLOT // INTERVALS_PER_SLOT - if get_current_slot(store) == block.slot and is_before_attesting_interval: + is_first_block = store.proposer_boost_root == Root() + if get_current_slot(store) == block.slot and is_before_attesting_interval and is_first_block: store.proposer_boost_root = hash_tree_root(block) # Update checkpoints in store if necessary