update forkchoice

This commit is contained in:
Jacek Sieka 2023-06-16 08:48:02 +02:00
parent 5fafcd8274
commit a235cef7cf
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8

View File

@ -95,7 +95,7 @@ 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
is_before_attesting_interval = time_into_slot < SECONDS_PER_SLOT // 2
if get_current_slot(store) == block.slot and is_before_attesting_interval:
store.proposer_boost_root = hash_tree_root(block)