Better logic.
MODIFY
WalletWasabi/KeyManagement/KeyManager.cs
WalletWasabi/KeyManagement/KeyManager.cs
@@ -581,14 +581,21 @@ namespace WalletWasabi.KeyManagement
MasterFingerprint = secret.PubKey.GetHDFingerPrint();
}
+ if (IsCompatibilityPasswordUsed)
+ {
+ Logger.LogError<KeyManager>($"Compatibility password used! Please consider to generate a new wallet to ensure recovery of the wallet!");
+ }
return extKey;
}
catch (SecurityException ex)
{
resultException = ex;
}
+
+ if (!IsCompatibilityPasswordUsed)
+ {
IsCompatibilityPasswordUsed = true; // The first iteration will try the original password if we get here it was failed.
- Logger.LogError<KeyManager>($"Compatibility password used! Please consider to generate a new wallet to ensure recovery of the wallet!");
+ }
}
throw new SecurityException("Invalid password.", resultException);

Better logic.