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 incomplete keyset when there are no keypairs #3

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

koesie10
Copy link
Contributor

If there are no keypairs and Keypair.keyset is called twice sequentially, it will create keypairs on both calls. Additionally, in the first call it will not return the future keypair, resulting in only one keypair being returned. Only on the second call of Keypair.keyset will a future keypair also be returned.

This fixes it by simply making it a while loop, so two keypairs are created on a first call of Keypair.keyset.

If there are no keypairs and Keypair.keyset is called twice sequentially,
it will create keypairs on both calls. Additionally, in the first call
it will not return the future keypair, resulting in only one keypair
being returned. Only on the second call of Keypair.keyset will a future
keypair also be returned.
@StefSchenkelaars StefSchenkelaars merged commit 3391b28 into main Nov 15, 2021
@StefSchenkelaars StefSchenkelaars deleted the fix/incorrect-first-keyset branch November 15, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants