File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -543,15 +543,8 @@ void SendCoinsDialog::sendButtonClicked([[maybe_unused]] bool checked)
543
543
// failed, or more signatures are needed.
544
544
if (broadcast) {
545
545
// now send the prepared transaction
546
- WalletModel::SendCoinsReturn sendStatus = model->sendCoins (*m_current_transaction);
547
- // process sendStatus and on error generate message shown to user
548
- processSendCoinsReturn (sendStatus);
549
-
550
- if (sendStatus.status == WalletModel::OK) {
551
- Q_EMIT coinsSent (m_current_transaction->getWtx ()->GetHash ());
552
- } else {
553
- send_failure = true ;
554
- }
546
+ model->sendCoins (*m_current_transaction);
547
+ Q_EMIT coinsSent (m_current_transaction->getWtx ()->GetHash ());
555
548
}
556
549
}
557
550
if (!send_failure) {
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
234
234
return SendCoinsReturn (OK);
235
235
}
236
236
237
- WalletModel::SendCoinsReturn WalletModel::sendCoins (WalletModelTransaction & transaction)
237
+ void WalletModel::sendCoins (WalletModelTransaction& transaction)
238
238
{
239
239
QByteArray transaction_array; /* store serialized transaction */
240
240
@@ -280,8 +280,6 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
280
280
}
281
281
282
282
checkBalanceChanged (m_wallet->getBalances ()); // update balance immediately, otherwise there could be a short noticeable delay until pollBalanceChanged hits
283
-
284
- return SendCoinsReturn (OK);
285
283
}
286
284
287
285
OptionsModel* WalletModel::getOptionsModel () const
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class WalletModel : public QObject
103
103
SendCoinsReturn prepareTransaction (WalletModelTransaction &transaction, const wallet::CCoinControl& coinControl);
104
104
105
105
// Send coins to a list of recipients
106
- SendCoinsReturn sendCoins (WalletModelTransaction & transaction);
106
+ void sendCoins (WalletModelTransaction& transaction);
107
107
108
108
// Wallet encryption
109
109
bool setWalletEncrypted (const SecureString& passphrase);
You can’t perform that action at this time.
0 commit comments