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

DID creation infinite loop if only 2 nodes on the network #376

Open
tahpot opened this issue Dec 17, 2023 · 1 comment · Fixed by #377
Open

DID creation infinite loop if only 2 nodes on the network #376

tahpot opened this issue Dec 17, 2023 · 1 comment · Fixed by #377
Assignees
Labels
bug Something isn't working

Comments

@tahpot
Copy link
Member

tahpot commented Dec 17, 2023

If there are only two nodes available on the network, the minimum threshold of 3 is never met for storing a DID document.

This results in an infinite loop that needs to be caught and an error thrown.

@tahpot tahpot added the bug Something isn't working label Dec 17, 2023
@tahpot tahpot self-assigned this Dec 17, 2023
@tahpot
Copy link
Member Author

tahpot commented Dec 18, 2023

There were several factors going on here.

  1. The mainnet.json file had incorrect entries causing intermittent issues
  2. vda-did didn't have a limit to the number of retries it attempts when trying to create a DID, causing an infinite loop in some scenarios
  3. A bug in the node selector of account-node which caused duplicate nodes to be selected in some scenarios

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