mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 09:29:37 +00:00
tx: allow resending tx on failed broadcast
This commit is contained in:
parent
b36be0490f
commit
4e549bfd3a
1 changed files with 7 additions and 0 deletions
|
@ -978,6 +978,13 @@ void MainWindow::onTransactionCommitted(bool success, PendingTransaction *tx, co
|
||||||
if (m_wallet->viewOnly() && error.contains("double spend")) {
|
if (m_wallet->viewOnly() && error.contains("double spend")) {
|
||||||
m_wallet->setForceKeyImageSync(true);
|
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);
|
Utils::showError(this, "Failed to send transaction", error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue