Transfer: report signed tx submission separately from ki import
What changed, and why it matters
This commit changes how the Monero GUI wallet reports the result of submitting a signed transaction file. Previously, the wallet treated the transaction submission and the import of key images as one combined step: if either failed, the whole operation was reported as a failure. Now, the GUI first submits the transaction, reports success or failure for that step, and then separately attempts to import key images, appending any key-image import error to the success message. This is a user-experience and error-reporting improvement, not a fix for a code vulnerability.
No security action required. Treat as a normal UX/refactoring commit. If reviewing for release notes, note improved error reporting for signed-transaction submission and key-image import.
Security signals we found
No cryptographic or trust-boundary changes
No input validation changes
Refactoring of success/failure reporting only
Key-image import still occurs, just reported separately
Evidence from the diff
The patch splits a previously chained call in Wallet::submitTxFile. The old implementation called submitTransaction and then immediately returned the result of importKeyImages(fileName + ‘_keyImages’), meaning a key-image import failure would mask a successful transaction submission and vice versa. The new implementation only submits the transaction in submitTxFile; the QML caller then explicitly imports key images and appends the error string if that import fails. This gives the user clearer feedback about which step, if any, failed. There is no change to cryptographic validation, transaction handling, or file parsing in the C++ backend.
Changed components
pages/Transfer.qmlsrc/libwalletqt/Wallet.cppInspect captured patch +11 / −13
### pages/Transfer.qml
@@ -1092,17 +1092,18 @@ Rectangle {
nameFilters: [ "signed transfers (*)"]
onAccepted: {
- if(!currentWallet.submitTxFile(walletManager.urlToLocalPath(selectedFile))){
- informationPopup.title = qsTr("Error") + translationManager.emptyString;
- informationPopup.text = qsTr("Can't submit transaction: ") + currentWallet.errorString
- informationPopup.onCloseCallback = null
- informationPopup.open();
- } else {
+ const path = walletManager.urlToLocalPath(selectedFile)
+ if (currentWallet.submitTxFile(path)) {
informationPopup.title = qsTr("Information") + translationManager.emptyString
- informationPopup.text = qsTr("Monero sent successfully") + translationManager.emptyString
- informationPopup.onCloseCallback = null
- informationPopup.open();
+ informationPopup.text = qsTr("Monero sent successfully") + translationManager.emptyString
+ if (!currentWallet.importKeyImages(path + "_keyImages"))
+ informationPopup.text += "\n\n" + currentWallet.errorString
+ } else {
+ informationPopup.title = qsTr("Error") + translationManager.emptyString
+ informationPopup.text = qsTr("Can't submit transaction: ") + currentWallet.errorString
}
+ informationPopup.onCloseCallback = null
+ informationPopup.open()
}
onRejected: {
console.log("Canceled")
### src/libwalletqt/Wallet.cpp
@@ -784,10 +784,7 @@ UnsignedTransaction * Wallet::loadTxFile(const QString &fileName)
bool Wallet::submitTxFile(const QString &fileName) const
{
qDebug() << "Trying to submit " << fileName;
- if (!m_walletImpl->submitTransaction(fileName.toStdString()))
- return false;
- // import key images
- return m_walletImpl->importKeyImages(fileName.toStdString() + "_keyImages");
+ return m_walletImpl->submitTransaction(fileName.toStdString());
}
void Wallet::commitTransactionAsync(PendingTransaction *t)Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.