]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
tx: allow resending tx on failed broadcast
authortobtoht <tob@featherwallet.org>
Thu, 14 Dec 2023 15:37:46 +0000 (16:37 +0100)
committertobtoht <tob@featherwallet.org>
Thu, 14 Dec 2023 15:37:46 +0000 (16:37 +0100)
src/MainWindow.cpp

index 39d47e506662239ce60fd8d5a50dfb3d958f45ec..f5417ac8872bcb25a2c005a0b8a87281f31e0107 100644 (file)
@@ -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;
     }