-
Notifications
You must be signed in to change notification settings - Fork 79
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance dkg.checkWrites()
logic
#1919
Comments
I would propose the following simple solution: if the data directory has anything except a file named Thoughts? @corverroos @OisinKyne |
Yeah, sounds good. Please do not remove checks that check that files and directories can be created. |
Sure thing, I'll augment the flow with the added checks. |
This PR adds the `checkClearDataDir` function which checks that during the DKG process, the data directory is clear of previous run artifacts and edge cases: - `validator_keys` directory or file is not present - `cluster-lock.json` file is not present - `deposit-data.json` file is not present - `charon-enr-private-key` is present and it's a file This way we should be safe against the edge cases we encountered in the Lido cluster set up last week. category: bug ticket: #1919
Implemented. |
馃悶 Bug Report
Description
dkg.checkWrites()
should be enhanced to prevent situations like the one described in point 4 of this document.Previous work
#1915 tries to handle some of the edge cases at the end of the DKG process, although those should be embedded in
dkg.checkWrites()
since it runs before the process takes place.The text was updated successfully, but these errors were encountered: