mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-15 10:15:00 -05:00
1.1 KiB
1.1 KiB
EIP-6914 -- Fork Choice
Table of contents
Introduction
This is the modification of the fork choice according to EIP-6914.
Fork choice
A new handler is added with this upgrade:
on_reused_index(store, index)whenever a validator indexindex: ValidatorIndexis reused. That is,get_index_for_new_validator()provides an index due to a return value ofTruefromis_reusable_validator().
This new handler is used to update the list of equivocating indices to be synchronized with the canonical chain.
Handlers
on_reused_index
def on_reused_index(store: Store, index: ValidatorIndex) -> None:
store.equivocating_indices.discard(index)