[#wallet-CoinEligibilityFilter]
= xref:wallet.adoc[wallet]::CoinEligibilityFilter
:relfileprefix: ../
:mrdocs:

Parameters for filtering which OutputGroups we may use in coin selection&period; We start by being very selective and requiring multiple confirmations and then get more permissive if we cannot fund the transaction&period;

== Synopsis

Declared in `&lt;wallet&sol;coinselection&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CoinEligibilityFilter;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CoinEligibilityFilter/2constructor-07.adoc[`CoinEligibilityFilter`]         [.small]#[constructor]#
| Constructors
| xref:wallet/CoinEligibilityFilter/operator_lt.adoc[`operator&lt;`] 
| Order filters by their fields for use as a map key&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CoinEligibilityFilter/conf_mine.adoc[`conf&lowbar;mine`] 
| Minimum number of confirmations for outputs that we sent to ourselves&period; We may use unconfirmed UTXOs sent from ourselves, e&period;g&period; change outputs&period;
| xref:wallet/CoinEligibilityFilter/conf_theirs.adoc[`conf&lowbar;theirs`] 
| Minimum number of confirmations for outputs received from a different wallet&period;
| xref:wallet/CoinEligibilityFilter/m_include_partial_groups.adoc[`m&lowbar;include&lowbar;partial&lowbar;groups`] 
| When avoid&lowbar;reuse&equals;true and there are full groups (OUTPUT&lowbar;GROUP&lowbar;MAX&lowbar;ENTRIES), whether or not to use any partial groups&period;
| xref:wallet/CoinEligibilityFilter/max_ancestors.adoc[`max&lowbar;ancestors`] 
| Maximum number of unconfirmed ancestors aggregated across all UTXOs in an OutputGroup&period;
| xref:wallet/CoinEligibilityFilter/max_cluster_count.adoc[`max&lowbar;cluster&lowbar;count`] 
| Maximum cluster count that a single UTXO in the OutputGroup may have&period; In practice, this filter also caps the maximum descendant count, as a transaction&apos;s descendant count is never larger than its cluster count&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
