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

Bug: Delayed Indices Update Execution Due to Non-Deterministic Slot Ticker #1807

Open
olegshmuelov opened this issue Oct 20, 2024 · 0 comments · May be fixed by #1725
Open

Bug: Delayed Indices Update Execution Due to Non-Deterministic Slot Ticker #1807

olegshmuelov opened this issue Oct 20, 2024 · 0 comments · May be fixed by #1725
Assignees
Labels
bug Something isn't working

Comments

@olegshmuelov
Copy link
Contributor

Each handler is triggered by the slot ticker independently.
The CommitteeHandler relies on the data from the AttesterHandler and SyncCommitteeHandler to fetch and execute duties.
When the indicesChange signal is triggered, the attester and sync committee stores need to update their duties to reflect the latest state.

Due to the non-deterministic nature of the slot ticker, we encounter inconsistent behavior. Sometimes the indicesChange event is handled and executed within a single slot, while in other scenarios, it spans two slots, leading to potential race conditions and incorrect duty execution.

Problematic Scenario (Observed Behavior):

  1. Slot 1:
    AttesterHandler receives the indicesChange trigger:
  2. Slot 2:
    CommitteeHandler gets a ticker event and executes duties (based on outdated indices).
    AttesterHandler gets a ticker event and updates duties due to the indicesChange trigger.
  3. Slot 3:
    CommitteeHandler executes duties, this time with updated indices, causing late duty execution for the indices change validators
@olegshmuelov olegshmuelov added the bug Something isn't working label Oct 20, 2024
@olegshmuelov olegshmuelov linked a pull request Oct 20, 2024 that will close this issue
@olegshmuelov olegshmuelov self-assigned this Oct 20, 2024
@ssvlabs ssvlabs deleted a comment Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant