Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
wallet::CoinEligibilityFilter Struct Reference

Parameters for filtering which OutputGroups we may use in coin selection. More...

#include <coinselection.h>

Public Member Functions

 CoinEligibilityFilter ()=delete
 
 CoinEligibilityFilter (int conf_mine, int conf_theirs, uint64_t max_ancestors)
 
 CoinEligibilityFilter (int conf_mine, int conf_theirs, uint64_t max_ancestors, uint64_t max_descendants)
 
 CoinEligibilityFilter (int conf_mine, int conf_theirs, uint64_t max_ancestors, uint64_t max_descendants, bool include_partial)
 
bool operator< (const CoinEligibilityFilter &other) const
 

Public Attributes

const int conf_mine
 Minimum number of confirmations for outputs that we sent to ourselves. More...
 
const int conf_theirs
 Minimum number of confirmations for outputs received from a different wallet. More...
 
const uint64_t max_ancestors
 Maximum number of unconfirmed ancestors aggregated across all UTXOs in an OutputGroup. More...
 
const uint64_t max_descendants
 Maximum number of descendants that a single UTXO in the OutputGroup may have. More...
 
const bool m_include_partial_groups {false}
 When avoid_reuse=true and there are full groups (OUTPUT_GROUP_MAX_ENTRIES), whether or not to use any partial groups. More...
 

Detailed Description

Parameters for filtering which OutputGroups we may use in coin selection.

We start by being very selective and requiring multiple confirmations and then get more permissive if we cannot fund the transaction.

Definition at line 203 of file coinselection.h.

Constructor & Destructor Documentation

◆ CoinEligibilityFilter() [1/4]

wallet::CoinEligibilityFilter::CoinEligibilityFilter ( )
delete

◆ CoinEligibilityFilter() [2/4]

wallet::CoinEligibilityFilter::CoinEligibilityFilter ( int  conf_mine,
int  conf_theirs,
uint64_t  max_ancestors 
)
inline

Definition at line 218 of file coinselection.h.

◆ CoinEligibilityFilter() [3/4]

wallet::CoinEligibilityFilter::CoinEligibilityFilter ( int  conf_mine,
int  conf_theirs,
uint64_t  max_ancestors,
uint64_t  max_descendants 
)
inline

Definition at line 219 of file coinselection.h.

◆ CoinEligibilityFilter() [4/4]

wallet::CoinEligibilityFilter::CoinEligibilityFilter ( int  conf_mine,
int  conf_theirs,
uint64_t  max_ancestors,
uint64_t  max_descendants,
bool  include_partial 
)
inline

Definition at line 220 of file coinselection.h.

Member Function Documentation

◆ operator<()

bool wallet::CoinEligibilityFilter::operator< ( const CoinEligibilityFilter other) const
inline

Definition at line 222 of file coinselection.h.

Member Data Documentation

◆ conf_mine

const int wallet::CoinEligibilityFilter::conf_mine

Minimum number of confirmations for outputs that we sent to ourselves.

We may use unconfirmed UTXOs sent from ourselves, e.g. change outputs.

Definition at line 207 of file coinselection.h.

◆ conf_theirs

const int wallet::CoinEligibilityFilter::conf_theirs

Minimum number of confirmations for outputs received from a different wallet.

Definition at line 209 of file coinselection.h.

◆ m_include_partial_groups

const bool wallet::CoinEligibilityFilter::m_include_partial_groups {false}

When avoid_reuse=true and there are full groups (OUTPUT_GROUP_MAX_ENTRIES), whether or not to use any partial groups.

Definition at line 215 of file coinselection.h.

◆ max_ancestors

const uint64_t wallet::CoinEligibilityFilter::max_ancestors

Maximum number of unconfirmed ancestors aggregated across all UTXOs in an OutputGroup.

Definition at line 211 of file coinselection.h.

◆ max_descendants

const uint64_t wallet::CoinEligibilityFilter::max_descendants

Maximum number of descendants that a single UTXO in the OutputGroup may have.

Definition at line 213 of file coinselection.h.


The documentation for this struct was generated from the following file: