mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-22 00:20:28 +00:00
Update Capella FC too
This commit is contained in:
parent
1904b47e3e
commit
fa1015ca03
@ -106,7 +106,8 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None:
|
|||||||
# Add proposer score boost if the block is timely
|
# Add proposer score boost if the block is timely
|
||||||
time_into_slot = (store.time - store.genesis_time) % SECONDS_PER_SLOT
|
time_into_slot = (store.time - store.genesis_time) % SECONDS_PER_SLOT
|
||||||
is_before_attesting_interval = time_into_slot < SECONDS_PER_SLOT // INTERVALS_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)
|
store.proposer_boost_root = hash_tree_root(block)
|
||||||
|
|
||||||
# Update checkpoints in store if necessary
|
# Update checkpoints in store if necessary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user