receive: improve wallet file corruption detection

This commit is contained in:
tobtoht
2024-03-08 17:35:57 +01:00
parent 4756f0dbe7
commit f97fa90521
11 changed files with 180 additions and 50 deletions
+6 -1
View File
@@ -1591,7 +1591,12 @@ void MainWindow::onInitiateTransaction() {
void MainWindow::onKeysCorrupted() {
if (!m_criticalWarningShown) {
m_criticalWarningShown = true;
Utils::showError(this, "Wallet keys are corrupted", "WARNING!\n\nTo prevent LOSS OF FUNDS do NOT continue to use this wallet file.\n\nRestore your wallet from seed.\n\nPlease report this incident to the Feather developers.\n\nWARNING!");
Utils::showError(this, "Potential wallet file corruption detected",
"WARNING!\n\n"
"To prevent LOSS OF FUNDS do NOT continue to use this wallet file.\n\n"
"Restore your wallet from seed, keys, or device.\n\n"
"Please report this incident to the Feather developers.\n\n"
"WARNING!", {}, "report_an_issue");
m_sendWidget->disallowSending();
}
}