PIVX Core  5.6.99
P2P Digital Currency
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
CCoinControl Class Reference

Coin Control Features. More...

#include <coincontrol.h>

Collaboration diagram for CCoinControl:
[legend]

Classes

struct  SimpleOutpointHash
 

Public Member Functions

 CCoinControl ()
 
void SetNull ()
 
bool HasSelected () const
 
bool IsSelected (const BaseOutPoint &output) const
 
void Select (const BaseOutPoint &output, CAmount value=0, bool isP2CS=false)
 
void UnSelect (const BaseOutPoint &output)
 
void UnSelectAll ()
 
void ListSelected (std::vector< OutPointWrapper > &vOutpoints) const
 
unsigned int QuantitySelected () const
 

Public Attributes

Optional< libzcash::SaplingPaymentAddressdestShieldChange = boost::none
 
CTxDestination destChange = CNoDestination()
 
bool fAllowOtherInputs
 If false, allows unselected inputs, but requires all selected inputs be used. More...
 
bool fAllowWatchOnly
 Includes watch only addresses which are solvable. More...
 
CAmount nMinimumTotalFee
 Minimum absolute fee (not per kilobyte) More...
 
bool fOverrideFeeRate
 Override estimated feerate. More...
 
CFeeRate nFeeRate
 Feerate to use if overrideFeeRate is true. More...
 

Private Attributes

std::unordered_set< OutPointWrapper, SimpleOutpointHashsetSelected
 

Detailed Description

Coin Control Features.

Definition at line 33 of file coincontrol.h.

Constructor & Destructor Documentation

◆ CCoinControl()

CCoinControl::CCoinControl ( )
inline

Definition at line 50 of file coincontrol.h.

Here is the call graph for this function:

Member Function Documentation

◆ HasSelected()

bool CCoinControl::HasSelected ( ) const
inline

Definition at line 66 of file coincontrol.h.

Here is the caller graph for this function:

◆ IsSelected()

bool CCoinControl::IsSelected ( const BaseOutPoint output) const
inline

Definition at line 71 of file coincontrol.h.

Here is the caller graph for this function:

◆ ListSelected()

void CCoinControl::ListSelected ( std::vector< OutPointWrapper > &  vOutpoints) const
inline

Definition at line 91 of file coincontrol.h.

Here is the caller graph for this function:

◆ QuantitySelected()

unsigned int CCoinControl::QuantitySelected ( ) const
inline

Definition at line 96 of file coincontrol.h.

Here is the caller graph for this function:

◆ Select()

void CCoinControl::Select ( const BaseOutPoint output,
CAmount  value = 0,
bool  isP2CS = false 
)
inline

Definition at line 76 of file coincontrol.h.

Here is the caller graph for this function:

◆ SetNull()

void CCoinControl::SetNull ( )
inline

Definition at line 55 of file coincontrol.h.

Here is the caller graph for this function:

◆ UnSelect()

void CCoinControl::UnSelect ( const BaseOutPoint output)
inline

Definition at line 81 of file coincontrol.h.

Here is the caller graph for this function:

◆ UnSelectAll()

void CCoinControl::UnSelectAll ( )
inline

Definition at line 86 of file coincontrol.h.

Here is the caller graph for this function:

Member Data Documentation

◆ destChange

CTxDestination CCoinControl::destChange = CNoDestination()

Definition at line 38 of file coincontrol.h.

◆ destShieldChange

Optional<libzcash::SaplingPaymentAddress> CCoinControl::destShieldChange = boost::none
Todo:
: upgrade those two fields to a single CWDestination?

Definition at line 37 of file coincontrol.h.

◆ fAllowOtherInputs

bool CCoinControl::fAllowOtherInputs

If false, allows unselected inputs, but requires all selected inputs be used.

Definition at line 40 of file coincontrol.h.

◆ fAllowWatchOnly

bool CCoinControl::fAllowWatchOnly

Includes watch only addresses which are solvable.

Definition at line 42 of file coincontrol.h.

◆ fOverrideFeeRate

bool CCoinControl::fOverrideFeeRate

Override estimated feerate.

Definition at line 46 of file coincontrol.h.

◆ nFeeRate

CFeeRate CCoinControl::nFeeRate

Feerate to use if overrideFeeRate is true.

Definition at line 48 of file coincontrol.h.

◆ nMinimumTotalFee

CAmount CCoinControl::nMinimumTotalFee

Minimum absolute fee (not per kilobyte)

Definition at line 44 of file coincontrol.h.

◆ setSelected

std::unordered_set<OutPointWrapper, SimpleOutpointHash> CCoinControl::setSelected
private

Definition at line 109 of file coincontrol.h.


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