aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-08-19 11:38:56 +0200
committerMacroFake <falke.marco@gmail.com>2022-08-20 09:32:53 +0200
commitfaad673716cfbad1e715f1bdf8ac00938a055aea (patch)
treefe1134e201b198a4ae2ee1483e0ac13b6a4ccbfa /src/wallet
parentc73c8d53fe27956faacb3e8ca0e94adf071de6ec (diff)
downloadbitcoin-faad673716cfbad1e715f1bdf8ac00938a055aea.tar.xz
Fix issues when calling std::move(const&)
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/spend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp
index 001acd04e2..d9b1eca020 100644
--- a/src/wallet/spend.cpp
+++ b/src/wallet/spend.cpp
@@ -353,7 +353,7 @@ std::map<CTxDestination, std::vector<COutput>> ListCoins(const CWallet& wallet)
std::map<CTxDestination, std::vector<COutput>> result;
- for (const COutput& coin : AvailableCoinsListUnspent(wallet).All()) {
+ for (COutput& coin : AvailableCoinsListUnspent(wallet).All()) {
CTxDestination address;
if ((coin.spendable || (wallet.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS) && coin.solvable)) &&
ExtractDestination(FindNonChangeParentOutput(wallet, coin.outpoint).scriptPubKey, address)) {