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

Immediately timestamp double init defense #1188

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Jun 5, 2024

Before we would not set the session storage double init defense until after the wallet was initialized. This changes it to when we verify it isn't set, this way we immediately "claim the lock" instead of waiting until the wallet is loaded. Also cleaned up the error message to be more informative.

Not sure if this will actually fix anything but found this while trying to find init error

@benthecarman benthecarman requested a review from futurepaul June 5, 2024 23:43
Copy link
Collaborator

@futurepaul futurepaul left a comment

Choose a reason for hiding this comment

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

this is great, previously there were cases where the wallet would load and only then would it reload. I think this at least makes that loop a lot shorter.

@futurepaul futurepaul merged commit 9324548 into master Jun 6, 2024
5 checks passed
@futurepaul futurepaul deleted the mv-double-init branch June 6, 2024 03:05
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