mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
refactor: Make ListSelected return vector
This commit is contained in:
committed by
Aurèle Oulès
parent
94776621ba
commit
daba95700b
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user