diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-09-30 18:34:24 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-09-30 18:34:24 -0400 |
| commit | 588b8435b7ab32479f644a3d1b9b4af3028f8a05 (patch) | |
| tree | a5ff405f8953fad1ab67c74b2224d36fe0213620 /pages | |
| parent | 8983cae468bef36981afb03f5090b5b9b54fcfbb (diff) | |
| parent | 1215a6e5d88bf300c672c6f622982ee45f410d31 (diff) | |
| download | monzero-gui-588b8435b7ab32479f644a3d1b9b4af3028f8a05.tar.gz monzero-gui-588b8435b7ab32479f644a3d1b9b4af3028f8a05.tar.xz monzero-gui-588b8435b7ab32479f644a3d1b9b4af3028f8a05.zip | |
Merge pull request #4051
1215a6e Assume untrusted daemon in simple mode (j-berman)
499c2a4 qsTr scan tx error (j-berman)
3b0e66a Display clear error when user scans older tx via untrusted daemon (j-berman)
4cd6652 Update balance after calling scan_tx (j-berman)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/settings/SettingsWallet.qml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index 0c1e80ea..db1ac495 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -138,9 +138,19 @@ Rectangle { inputDialog.onAcceptedCallback = function() { var txid = inputDialog.inputText.trim(); if (currentWallet.scanTransactions([txid])) { + 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 = qsTr("The wallet has already seen 1 or more recent transactions than the scanned transaction.\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; |
