Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Public Member Functions | Public Attributes | List of all members
OutputGroup Struct Reference

#include <coinselection.h>

Public Member Functions

 OutputGroup ()
 
 OutputGroup (std::vector< CInputCoin > &&outputs, bool from_me, CAmount value, int depth, size_t ancestors, size_t descendants)
 
 OutputGroup (const CInputCoin &output, int depth, bool from_me, size_t ancestors, size_t descendants)
 
void Insert (const CInputCoin &output, int depth, bool from_me, size_t ancestors, size_t descendants)
 
std::vector< CInputCoin >::iterator Discard (const CInputCoin &output)
 
bool EligibleForSpending (const CoinEligibilityFilter &eligibility_filter) const
 
void SetFees (const CFeeRate effective_feerate, const CFeeRate long_term_feerate)
 Update the OutputGroup's fee, long_term_fee, and effective_value based on the given feerates. More...
 
OutputGroup GetPositiveOnlyGroup ()
 

Public Attributes

std::vector< CInputCoinm_outputs
 
bool m_from_me {true}
 
CAmount m_value {0}
 
int m_depth {999}
 
size_t m_ancestors {0}
 
size_t m_descendants {0}
 
CAmount effective_value {0}
 
CAmount fee {0}
 
CAmount long_term_fee {0}
 

Detailed Description

Definition at line 71 of file coinselection.h.

Constructor & Destructor Documentation

OutputGroup::OutputGroup ( )
inline

Definition at line 83 of file coinselection.h.

OutputGroup::OutputGroup ( std::vector< CInputCoin > &&  outputs,
bool  from_me,
CAmount  value,
int  depth,
size_t  ancestors,
size_t  descendants 
)
inline

Definition at line 84 of file coinselection.h.

OutputGroup::OutputGroup ( const CInputCoin output,
int  depth,
bool  from_me,
size_t  ancestors,
size_t  descendants 
)
inline

Definition at line 92 of file coinselection.h.

Here is the call graph for this function:

Member Function Documentation

std::vector< CInputCoin >::iterator OutputGroup::Discard ( const CInputCoin output)

Definition at line 320 of file coinselection.cpp.

Here is the caller graph for this function:

bool OutputGroup::EligibleForSpending ( const CoinEligibilityFilter eligibility_filter) const

Definition at line 331 of file coinselection.cpp.

OutputGroup OutputGroup::GetPositiveOnlyGroup ( )

Definition at line 355 of file coinselection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void OutputGroup::Insert ( const CInputCoin output,
int  depth,
bool  from_me,
size_t  ancestors,
size_t  descendants 
)

Definition at line 303 of file coinselection.cpp.

Here is the caller graph for this function:

void OutputGroup::SetFees ( const CFeeRate  effective_feerate,
const CFeeRate  long_term_feerate 
)

Update the OutputGroup's fee, long_term_fee, and effective_value based on the given feerates.

Definition at line 338 of file coinselection.cpp.

Here is the call graph for this function:

Member Data Documentation

CAmount OutputGroup::effective_value {0}

Definition at line 79 of file coinselection.h.

CAmount OutputGroup::fee {0}

Definition at line 80 of file coinselection.h.

CAmount OutputGroup::long_term_fee {0}

Definition at line 81 of file coinselection.h.

size_t OutputGroup::m_ancestors {0}

Definition at line 77 of file coinselection.h.

int OutputGroup::m_depth {999}

Definition at line 76 of file coinselection.h.

size_t OutputGroup::m_descendants {0}

Definition at line 78 of file coinselection.h.

bool OutputGroup::m_from_me {true}

Definition at line 74 of file coinselection.h.

std::vector<CInputCoin> OutputGroup::m_outputs

Definition at line 73 of file coinselection.h.

CAmount OutputGroup::m_value {0}

Definition at line 75 of file coinselection.h.


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