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

Node fails to start if DKG DB has state but no group file #1335

Open
CluEleSsUK opened this issue Apr 26, 2024 · 0 comments
Open

Node fails to start if DKG DB has state but no group file #1335

CluEleSsUK opened this issue Apr 26, 2024 · 0 comments
Labels

Comments

@CluEleSsUK
Copy link
Contributor

If you accidentally the group file, but maintain DB state, the node entirely fails to start.
On one hand, this catches inconsistencies immediately. On the other hand, it could deny service to other beacons if one of them gets messed up.

In the short term, we should just fail to start the single beacon that's missing the group file.
In the medium term, we can consider rebuilding the group file from the DKG DB state. Right now, public polynomials would be missing, but we could perhaps store them in the DKG state.
In the longer term, we could consider getting rid of the group file altogether and refactor the BeaconProcess to load DKG state directly from the DB.

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