Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12428723
D3396.id9599.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3396.id9599.diff
View Options
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1286,11 +1286,6 @@
*/
CTxDestination AddAndGetDestinationForScript(const CScript &script,
OutputType);
-
- /** Whether a given output is spendable by this wallet */
- bool OutputEligibleForSpending(
- const COutput &output,
- const CoinEligibilityFilter &eligibility_filter) const;
};
/** A key allocated from the key pool. */
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2570,30 +2570,6 @@
return ptx->vout[n];
}
-bool CWallet::OutputEligibleForSpending(
- const COutput &output,
- const CoinEligibilityFilter &eligibility_filter) const {
- if (!output.fSpendable) {
- return false;
- }
-
- if (output.nDepth < (output.tx->IsFromMe(ISMINE_ALL)
- ? eligibility_filter.conf_mine
- : eligibility_filter.conf_theirs)) {
- return false;
- }
-
- size_t ancestors, descendants;
- g_mempool.GetTransactionAncestry(output.tx->GetId(), ancestors,
- descendants);
- if (ancestors > eligibility_filter.max_ancestors ||
- descendants > eligibility_filter.max_descendants) {
- return false;
- }
-
- return true;
-}
-
bool CWallet::SelectCoinsMinConf(
const Amount nTargetValue, const CoinEligibilityFilter &eligibility_filter,
std::vector<OutputGroup> groups, std::set<CInputCoin> &setCoinsRet,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 19:25 (7 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4839182
Default Alt Text
D3396.id9599.diff (1 KB)
Attached To
D3396: wallet: Remove deprecated OutputEligibleForSpending
Event Timeline
Log In to Comment