aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.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/walletmodel.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/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index 1f6c90af4a..454c9a05d0 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -234,7 +234,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
return SendCoinsReturn(OK);
}
-WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &transaction)
+void WalletModel::sendCoins(WalletModelTransaction& transaction)
{
QByteArray transaction_array; /* store serialized transaction */
@@ -280,8 +280,6 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
}
checkBalanceChanged(m_wallet->getBalances()); // update balance immediately, otherwise there could be a short noticeable delay until pollBalanceChanged hits
-
- return SendCoinsReturn(OK);
}
OptionsModel* WalletModel::getOptionsModel() const