diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-01-23 17:00:14 +0100 |
---|---|---|
committer | Aurèle Oulès <aurele@oules.com> | 2023-04-26 10:41:10 +0200 |
commit | daba95700b0b77a2e898299f218c47a69ed2c7d0 (patch) | |
tree | 143bee3f3b96983e33fb7c7b2ebb3756f0fe417c /src/wallet/spend.cpp | |
parent | 94776621ba6a79f3197ec71250bc48e974ad5e4a (diff) | |
download | bitcoin-daba95700b0b77a2e898299f218c47a69ed2c7d0.tar.xz |
refactor: Make ListSelected return vector
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 7379490f9b..b14a30921b 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -159,10 +159,8 @@ util::Result<PreSelectedInputs> FetchSelectedInputs(const CWallet& wallet, const const CoinSelectionParams& coin_selection_params) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet) { PreSelectedInputs result; - std::vector<COutPoint> vPresetInputs; - coin_control.ListSelected(vPresetInputs); const bool can_grind_r = wallet.CanGrindR(); - for (const COutPoint& outpoint : vPresetInputs) { + for (const COutPoint& outpoint : coin_control.ListSelected()) { int input_bytes = -1; CTxOut txout; if (auto ptr_wtx = wallet.GetWalletTx(outpoint.hash)) { |