Skip to content

Commit 1f38f06

Browse files
author
Jamie C. Driver
committed
passphrase: do not reset passphrase to 'Never' when initalising wallet
Just leave the setting as is and respect/retain whatever value was last explicitly set.
1 parent 279331b commit 1f38f06

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

main/process/mnemonic.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,14 +1437,6 @@ void initialise_with_mnemonic(const bool temporary_restore, const bool force_qr_
14371437
// (In advanced mode we ask the user, in default/basic mode we always silently export the key.)
14381438
keychain_set_confirm_export_blinding_key(advanced_mode);
14391439

1440-
// When using 'temporary restore' we respect the existing passphrase settings.
1441-
// Otherwise reset to 'passphrase not in use' by default during new wallet setup.
1442-
// NOTE: the user can enable it explicitly in the options/setting prefs menu if desired.
1443-
if (!temporary_restore) {
1444-
keychain_set_passphrase_frequency(PASSPHRASE_NEVER);
1445-
keychain_persist_key_flags();
1446-
}
1447-
14481440
if (!derive_keychain(temporary_restore, mnemonic)) {
14491441
// Error making wallet...
14501442
JADE_LOGE("Failed to derive keychain from valid mnemonic");

0 commit comments

Comments
 (0)