Merge pull request #4805

0237478 Transfer: report signed tx submission separately from ki import (selsta)

ACKs: jpk68
This commit is contained in:
tobtoht committed 2026-12-03 19:40:08 +00:00
commit 27d39f0ef0
2 files changed
+11 -13

No files matched your search

+10 -9
View File
@@ -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")
+1 -4
View File
@@ -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)