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

NetworkKeys: actually fix stale keyfile download #1072

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

pkova
Copy link
Contributor

@pkova pkova commented Nov 9, 2022

My previous PR #1069 fixed the stale keyfile download issue #1068, but introduced a race condition where sometimes the point state would update prematurely, leading to the rekey never completing in the UI.

On deeper investigation I found out that the stale keyfile bug was introduced by me in #1052 when I misunderstood and changed the checkForUpdates function. This PR reverts the relevant changes in #1069 and #1052, fixing #1068 once and for all.

@pkova pkova requested a review from tomholford November 9, 2022 14:33
@tomholford
Copy link
Collaborator

@pkova Thanks for the fix. Was this tested on mainnet?

@pkova
Copy link
Contributor Author

pkova commented Nov 9, 2022

Yes.

Copy link
Collaborator

@tomholford tomholford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix 💯

@tomholford tomholford merged commit 398a47d into master Nov 9, 2022
@tomholford tomholford deleted the pkova/actually-fix branch November 9, 2022 14:54
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