aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsdialog.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-05-29 17:40:30 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-05-29 17:49:55 +0200
commit1f653dc2623ee2be3e1eeeaf5ce0e97966cecd6a (patch)
treed16f62183db590262c8ef1a2db8db61f9e332e68 /src/qt/sendcoinsdialog.cpp
parentba48fcf4a40c5b9888459511fb4233a1b89184cc (diff)
downloadbitcoin-1f653dc2623ee2be3e1eeeaf5ce0e97966cecd6a.tar.xz
qt, wallet, refactor: Make `WalletModel::sendCoins()` return `void`
Currently, the `WalletModel::sendCoins()` function always returns the same value. Also dead and noop code has been removed.
Diffstat (limited to 'src/qt/sendcoinsdialog.cpp')
-rw-r--r--src/qt/sendcoinsdialog.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp
index fd8eccb86d..dd7a2d430f 100644
--- a/src/qt/sendcoinsdialog.cpp
+++ b/src/qt/sendcoinsdialog.cpp
@@ -543,15 +543,8 @@ void SendCoinsDialog::sendButtonClicked([[maybe_unused]] bool checked)
// failed, or more signatures are needed.
if (broadcast) {
// now send the prepared transaction
- WalletModel::SendCoinsReturn sendStatus = model->sendCoins(*m_current_transaction);
- // process sendStatus and on error generate message shown to user
- processSendCoinsReturn(sendStatus);
-
- if (sendStatus.status == WalletModel::OK) {
- Q_EMIT coinsSent(m_current_transaction->getWtx()->GetHash());
- } else {
- send_failure = true;
- }
+ model->sendCoins(*m_current_transaction);
+ Q_EMIT coinsSent(m_current_transaction->getWtx()->GetHash());
}
}
if (!send_failure) {