@@ -79,15 +79,15 @@ TxSize CalculateMaximumSignedTxSize(const CTransaction &tx, const CWallet *walle
79
79
return CalculateMaximumSignedTxSize (tx, wallet, txouts, coin_control);
80
80
}
81
81
82
- uint64_t CoinsResult::size () const
82
+ uint64_t CoinsResult::Size () const
83
83
{
84
84
return bech32m.size () + bech32.size () + P2SH_segwit.size () + legacy.size () + other.size ();
85
85
}
86
86
87
- std::vector<COutput> CoinsResult::all () const
87
+ std::vector<COutput> CoinsResult::All () const
88
88
{
89
89
std::vector<COutput> all;
90
- all.reserve (this ->size ());
90
+ all.reserve (this ->Size ());
91
91
all.insert (all.end (), bech32m.begin (), bech32m.end ());
92
92
all.insert (all.end (), bech32.begin (), bech32.end ());
93
93
all.insert (all.end (), P2SH_segwit.begin (), P2SH_segwit.end ());
@@ -96,7 +96,7 @@ std::vector<COutput> CoinsResult::all() const
96
96
return all;
97
97
}
98
98
99
- void CoinsResult::clear ()
99
+ void CoinsResult::Clear ()
100
100
{
101
101
bech32m.clear ();
102
102
bech32.clear ();
@@ -319,7 +319,7 @@ CoinsResult AvailableCoins(const CWallet& wallet,
319
319
}
320
320
321
321
// Checks the maximum number of UTXO's.
322
- if (nMaximumCount > 0 && result.size () >= nMaximumCount) {
322
+ if (nMaximumCount > 0 && result.Size () >= nMaximumCount) {
323
323
return result;
324
324
}
325
325
}
@@ -375,7 +375,7 @@ std::map<CTxDestination, std::vector<COutput>> ListCoins(const CWallet& wallet)
375
375
376
376
std::map<CTxDestination, std::vector<COutput>> result;
377
377
378
- for (const COutput& coin : AvailableCoinsListUnspent (wallet).all ()) {
378
+ for (const COutput& coin : AvailableCoinsListUnspent (wallet).All ()) {
379
379
CTxDestination address;
380
380
if ((coin.spendable || (wallet.IsWalletFlagSet (WALLET_FLAG_DISABLE_PRIVATE_KEYS) && coin.solvable )) &&
381
381
ExtractDestination (FindNonChangeParentOutput (wallet, coin.outpoint ).scriptPubKey , address)) {
@@ -515,7 +515,7 @@ std::optional<SelectionResult> AttemptSelection(const CWallet& wallet, const CAm
515
515
// over all available coins, else pick the best solution from the results
516
516
if (results.size () == 0 ) {
517
517
if (allow_mixed_output_types) {
518
- if (auto result{ChooseSelectionResult (wallet, nTargetValue, eligibility_filter, available_coins.all (), coin_selection_params)}) {
518
+ if (auto result{ChooseSelectionResult (wallet, nTargetValue, eligibility_filter, available_coins.All (), coin_selection_params)}) {
519
519
return result;
520
520
}
521
521
}
@@ -649,7 +649,7 @@ std::optional<SelectionResult> SelectCoins(const CWallet& wallet, CoinsResult& a
649
649
650
650
// form groups from remaining coins; note that preset coins will not
651
651
// automatically have their associated (same address) coins included
652
- if (coin_control.m_avoid_partial_spends && available_coins.size () > OUTPUT_GROUP_MAX_ENTRIES) {
652
+ if (coin_control.m_avoid_partial_spends && available_coins.Size () > OUTPUT_GROUP_MAX_ENTRIES) {
653
653
// Cases where we have 101+ outputs all pointing to the same destination may result in
654
654
// privacy leaks as they will potentially be deterministically sorted. We solve that by
655
655
// explicitly shuffling the outputs before processing
0 commit comments