aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-10-28 16:14:31 -0500
committerj-berman <justinberman@protonmail.com>2022-10-28 16:14:31 -0500
commit3b0e66a3d08959c267670e832a87bdada3a91335 (patch)
treeb0118bd574147229774cdaf247229bffdc85dc00 /pages
parent4cd6652825972a32f18881a88e01681830fa0577 (diff)
downloadmonzero-gui-3b0e66a3d08959c267670e832a87bdada3a91335.tar.gz
monzero-gui-3b0e66a3d08959c267670e832a87bdada3a91335.tar.xz
monzero-gui-3b0e66a3d08959c267670e832a87bdada3a91335.zip
Display clear error when user scans older tx via untrusted daemon
Diffstat (limited to 'pages')
-rw-r--r--pages/settings/SettingsWallet.qml11
1 files changed, 10 insertions, 1 deletions
diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml
index 604e2db8..67194231 100644
--- a/pages/settings/SettingsWallet.qml
+++ b/pages/settings/SettingsWallet.qml
@@ -141,7 +141,16 @@ Rectangle {
updateBalance();
appWindow.showStatusMessage(qsTr("Transaction successfully scanned"), 3);
} else {
- appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);
+ console.error("Error: ", currentWallet.errorString);
+ if (currentWallet.errorString == "The wallet has already seen 1 or more recent transactions than the scanned tx") {
+ informationPopup.title = qsTr("Error") + translationManager.emptyString;
+ informationPopup.text = currentWallet.errorString + ".\n\nIn order to rescan the transaction, you can re-sync your wallet by resetting the wallet restore height in the Settings > Info page. Make sure to use a restore height from before your wallet's earliest transaction." + translationManager.emptyString;
+ informationPopup.icon = StandardIcon.Critical
+ informationPopup.onCloseCallback = null
+ informationPopup.open();
+ } else {
+ appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);
+ }
}
}
inputDialog.onRejectedCallback = null;