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 crash where the wallet wasn't opening due to corrupt data file #804

Merged

Conversation

macsleven
Copy link
Contributor

@macsleven macsleven commented Jun 3, 2021

This is Related to #743 and #742 from https://github.com/planetdecred/dcrios/tree/release-v1.5,
This PR was the fix applied to the 1.5 branch in the v1.5.3 release. We currently don’t have it in the master branch.

@@ -155,7 +165,8 @@ class StartScreenViewController: UIViewController, CAAnimationDelegate {
let wallet = try WalletLoader.shared.multiWallet.createNewWallet(LocalizedStrings.myWallet, privatePassphrase: pinOrPassword, privatePassphraseType: type.type)

Utils.renameDefaultAccountToLocalLanguage(wallet: wallet)

UserDefaults.standard.set(true, forKey: "V1.5.3_DB")
Copy link
Contributor

Choose a reason for hiding this comment

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

Store this key in GlobalConstants since it's used severally.

@macsleven macsleven changed the title Implement Fix for data file error Fix crash where the wallet wasn't opening due to corrupt data file Jun 8, 2021
@macsleven macsleven merged commit 8b33704 into planetdecred:master Jun 8, 2021
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.

None yet

4 participants