ots: cache signed tx on view-only wallet

This commit is contained in:
tobtoht 2024-03-12 14:18:16 +01:00
parent b50ceda12b
commit 948266be4e
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -909,8 +909,6 @@ void MainWindow::onTransactionCreated(PendingTransaction *tx, const QVector<QStr
return; return;
} }
m_wallet->addCacheTransaction(tx->txid()[0], tx->signedTxToHex(0));
// Offline transaction signing // Offline transaction signing
if (m_wallet->viewOnly()) { if (m_wallet->viewOnly()) {
#ifdef WITH_SCANNER #ifdef WITH_SCANNER
@ -934,6 +932,8 @@ void MainWindow::onTransactionCreated(PendingTransaction *tx, const QVector<QStr
#endif #endif
} }
m_wallet->addCacheTransaction(tx->txid()[0], tx->signedTxToHex(0));
// Show advanced dialog on multi-destination transactions // Show advanced dialog on multi-destination transactions
if (address.size() > 1) { if (address.size() > 1) {
TxConfAdvDialog dialog_adv{m_wallet, m_wallet->tmpTxDescription, this}; TxConfAdvDialog dialog_adv{m_wallet, m_wallet->tmpTxDescription, this};