Skip to content

Commit 43e04d1

Browse files
committed
wallet: Remove deprecated OutputEligibleForSpending
1 parent 0128121 commit 43e04d1

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,23 +2414,6 @@ const CTxOut& CWallet::FindNonChangeParentOutput(const CTransaction& tx, int out
24142414
return ptx->vout[n];
24152415
}
24162416

2417-
bool CWallet::OutputEligibleForSpending(const COutput& output, const CoinEligibilityFilter& eligibility_filter) const
2418-
{
2419-
if (!output.fSpendable)
2420-
return false;
2421-
2422-
if (output.nDepth < (output.tx->IsFromMe(ISMINE_ALL) ? eligibility_filter.conf_mine : eligibility_filter.conf_theirs))
2423-
return false;
2424-
2425-
size_t ancestors, descendants;
2426-
mempool.GetTransactionAncestry(output.tx->GetHash(), ancestors, descendants);
2427-
if (ancestors > eligibility_filter.max_ancestors || descendants > eligibility_filter.max_descendants) {
2428-
return false;
2429-
}
2430-
2431-
return true;
2432-
}
2433-
24342417
bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, const CoinEligibilityFilter& eligibility_filter, std::vector<OutputGroup> groups,
24352418
std::set<CInputCoin>& setCoinsRet, CAmount& nValueRet, const CoinSelectionParams& coin_selection_params, bool& bnb_used) const
24362419
{

src/wallet/wallet.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,6 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
11881188
*/
11891189
void LearnAllRelatedScripts(const CPubKey& key);
11901190

1191-
/** Whether a given output is spendable by this wallet */
1192-
bool OutputEligibleForSpending(const COutput& output, const CoinEligibilityFilter& eligibility_filter) const;
1193-
11941191
/** set a single wallet flag */
11951192
void SetWalletFlag(uint64_t flags);
11961193

0 commit comments

Comments
 (0)