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

Optimize for multiprocessing #30

Open
SAYaghoubnejad opened this issue Dec 17, 2024 · 0 comments
Open

Optimize for multiprocessing #30

SAYaghoubnejad opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SAYaghoubnejad
Copy link
Collaborator

In nodes while preforming DKG rounds, the temp data stores in memory (self.key_gens[dkg_id]). This method of implementation will result in the following error:

validator-1  | ERROR:root:Flask round1 handler => Exception occurred: KeyError: '8bbcb164-158b-47dc-94b8-53b04bf62422'
validator-1  | Traceback (most recent call last):
validator-1  |   File "/app/.venv/lib/python3.11/site-packages/pyfrost/network/node.py", line 25, in wrapper
validator-1  |     result: Dict = func(self, *args, **kwargs)
validator-1  |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
validator-1  |   File "/app/.venv/lib/python3.11/site-packages/pyfrost/network/node.py", line 124, in round2
validator-1  |     round2_broadcast_data = self.key_gens[dkg_id].round2(broadcasted_data)
validator-1  |                             ~~~~~~~~~~~~~^^^^^^^^

The root cause of this error is that we use 5 workers to run nodes and the memory was not shared.

@SAYaghoubnejad SAYaghoubnejad added the bug Something isn't working label Dec 17, 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

No branches or pull requests

1 participant