From: tobtoht Date: Thu, 14 Dec 2023 15:37:46 +0000 (+0100) Subject: tx: allow resending tx on failed broadcast X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=4e549bfd3a29f8fbd39d5dacae62c8a83fb59d1e;p=gamesguru%2Ffeather.git tx: allow resending tx on failed broadcast --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 39d47e50..f5417ac8 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -978,6 +978,13 @@ void MainWindow::onTransactionCommitted(bool success, PendingTransaction *tx, co if (m_wallet->viewOnly() && error.contains("double spend")) { m_wallet->setForceKeyImageSync(true); } + if (error.contains("no connection to daemon")) { + auto button = QMessageBox::question(this, "Unable to send transaction", "No connection to node. Retry sending transaction?"); + if (button == QMessageBox::Yes) { + m_wallet->commitTransaction(tx, m_wallet->tmpTxDescription); + } + return; + } Utils::showError(this, "Failed to send transaction", error); return; }