mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-12-04 00:38:09 +00:00
Transfer: report signed tx submission separately from ki import
This commit is contained in:
2 files changed
+11
-13
No files matched your search
+10
-9
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user