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

Fix Stake Distribution done multiple times per epoch #804

Closed
jpraynaud opened this issue Mar 15, 2023 · 0 comments · Fixed by #805
Closed

Fix Stake Distribution done multiple times per epoch #804

jpraynaud opened this issue Mar 15, 2023 · 0 comments · Fixed by #805
Assignees
Labels
bug ⚠️ Something isn't working D-medium Difficulty: medium

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Mar 15, 2023

Issue

In case of error in the state machine or when the signer/aggregator node restarts, it computes the stake distribution which is a very memory/compute intensive operation even though it has already been recorded previously for the same epoch.

This leads to multiple problems:

  • Long startup times
  • Very painful bootstrap of networks as the open window for registration is very narrow

To do

Retrieve the stake distribution if and only if it is not already recorded for the epoch

@jpraynaud jpraynaud added bug ⚠️ Something isn't working D-medium Difficulty: medium labels Mar 15, 2023
@jpraynaud jpraynaud self-assigned this Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ⚠️ Something isn't working D-medium Difficulty: medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant