Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork choice: update the Store to handle ILs #8936

Closed
mehdi-aouadi opened this issue Dec 18, 2024 · 0 comments
Closed

Fork choice: update the Store to handle ILs #8936

mehdi-aouadi opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels

Comments

@mehdi-aouadi
Copy link
Contributor

mehdi-aouadi commented Dec 18, 2024

Modified Store

Note: Store is modified to track the seen inclusion lists and inclusion list equivocators.

@dataclass
class Store(object):
    time: uint64
    genesis_time: uint64
    justified_checkpoint: Checkpoint
    finalized_checkpoint: Checkpoint
    unrealized_justified_checkpoint: Checkpoint
    unrealized_finalized_checkpoint: Checkpoint
    proposer_boost_root: Root
    equivocating_indices: Set[ValidatorIndex]
    blocks: Dict[Root, BeaconBlock] = field(default_factory=dict)
    block_states: Dict[Root, BeaconState] = field(default_factory=dict)
    block_timeliness: Dict[Root, boolean] = field(default_factory=dict)
    checkpoint_states: Dict[Checkpoint, BeaconState] = field(default_factory=dict)
    latest_messages: Dict[ValidatorIndex, LatestMessage] = field(default_factory=dict)
    unrealized_justifications: Dict[Root, Checkpoint] = field(default_factory=dict)
    # [New in EIP-7805]
    inclusion_lists: Dict[Tuple[Slot, Root], List[InclusionList]] = field(default_factory=dict)
    inclusion_list_equivocators: Dict[Tuple[Slot, Root], Set[ValidatorIndex]] = field(default_factory=dict)
    unsatisfied_inclusion_list_blocks: Set[Root] = field(default_factory=Set)
@mehdi-aouadi mehdi-aouadi changed the title Fork choice changes Update the Store to handle the ILs Feb 11, 2025
@mehdi-aouadi mehdi-aouadi changed the title Update the Store to handle the ILs Fork choice: Update the Store to handle the ILs Feb 11, 2025
@mehdi-aouadi mehdi-aouadi changed the title Fork choice: Update the Store to handle the ILs Fork choice: update the Store to handle the ILs Feb 11, 2025
@mehdi-aouadi mehdi-aouadi self-assigned this Feb 11, 2025
@mehdi-aouadi mehdi-aouadi changed the title Fork choice: update the Store to handle the ILs Fork choice: update the Store to handle ILs Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant