Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Coin Control Features. More...

#include <coincontrol.h>

Public Member Functions

 CCoinControl ()
 
void SetNull ()
 
bool HasSelected () const
 
bool IsSelected (const COutPoint &output) const
 
void Select (const COutPoint &output)
 
void UnSelect (const COutPoint &output)
 
void UnSelectAll ()
 
void ListSelected (std::vector< COutPoint > &vOutpoints) const
 
void UsePrivateSend (bool fUsePrivateSend)
 
bool IsUsingPrivateSend () const
 

Public Attributes

CTxDestination destChange
 
bool fAllowOtherInputs
 If false, allows unselected inputs, but requires all selected inputs be used if fAllowOtherInputs is true (default) More...
 
bool fRequireAllInputs
 If false, only include as many inputs as necessary to fulfill a coin selection request. Only usable together with fAllowOtherInputs. More...
 
bool fAllowWatchOnly
 Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE criteria. More...
 
bool fOverrideFeeRate
 Override automatic min/max checks on fee, m_feerate must be set if true. More...
 
boost::optional< CFeeRatem_feerate
 Override the default payTxFee if set. More...
 
boost::optional< CFeeRatem_discard_feerate
 Override the discard feerate estimation with m_discard_feerate in CreateTransaction if set. More...
 
boost::optional< unsigned int > m_confirm_target
 Override the default confirmation target if set. More...
 
FeeEstimateMode m_fee_mode
 Fee estimation mode to control arguments to estimateSmartFee. More...
 
CoinType nCoinType
 Controls which types of coins are allowed to be used (default: ALL_COINS) More...
 

Private Attributes

std::set< COutPointsetSelected
 

Detailed Description

Coin Control Features.

Definition at line 28 of file coincontrol.h.

Constructor & Destructor Documentation

◆ CCoinControl()

CCoinControl::CCoinControl ( )
inline

Definition at line 51 of file coincontrol.h.

References SetNull().

Member Function Documentation

◆ HasSelected()

bool CCoinControl::HasSelected ( ) const
inline

◆ IsSelected()

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

◆ IsUsingPrivateSend()

bool CCoinControl::IsUsingPrivateSend ( ) const
inline

Definition at line 108 of file coincontrol.h.

References nCoinType, and ONLY_FULLY_MIXED.

Referenced by CoinControlDialog::buttonToggleLockClicked(), and SendCoinsDialog::send().

◆ ListSelected()

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

Definition at line 96 of file coincontrol.h.

References setSelected.

Referenced by CWallet::SelectCoins(), and CoinControlDialog::updateLabels().

◆ Select()

void CCoinControl::Select ( const COutPoint output)
inline

◆ SetNull()

◆ UnSelect()

void CCoinControl::UnSelect ( const COutPoint output)
inline

◆ UnSelectAll()

void CCoinControl::UnSelectAll ( )
inline

◆ UsePrivateSend()

void CCoinControl::UsePrivateSend ( bool  fUsePrivateSend)
inline

Member Data Documentation

◆ destChange

◆ fAllowOtherInputs

bool CCoinControl::fAllowOtherInputs

If false, allows unselected inputs, but requires all selected inputs be used if fAllowOtherInputs is true (default)

Definition at line 33 of file coincontrol.h.

Referenced by CWallet::AvailableCoins(), CTransactionBuilder::CTransactionBuilder(), CWallet::FundTransaction(), CWallet::SelectCoins(), and SetNull().

◆ fAllowWatchOnly

bool CCoinControl::fAllowWatchOnly

Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE criteria.

Definition at line 37 of file coincontrol.h.

Referenced by CWallet::AvailableCoins(), fundrawtransaction(), and SetNull().

◆ fOverrideFeeRate

bool CCoinControl::fOverrideFeeRate

Override automatic min/max checks on fee, m_feerate must be set if true.

Definition at line 39 of file coincontrol.h.

Referenced by fundrawtransaction(), GetMinimumFee(), and SetNull().

◆ fRequireAllInputs

bool CCoinControl::fRequireAllInputs

If false, only include as many inputs as necessary to fulfill a coin selection request. Only usable together with fAllowOtherInputs.

Definition at line 35 of file coincontrol.h.

Referenced by CWallet::SelectCoins(), and SetNull().

◆ m_confirm_target

boost::optional<unsigned int> CCoinControl::m_confirm_target

Override the default confirmation target if set.

Definition at line 45 of file coincontrol.h.

Referenced by fundrawtransaction(), GetMinimumFee(), sendmany(), sendtoaddress(), SetNull(), and SendCoinsDialog::updateCoinControlState().

◆ m_discard_feerate

boost::optional<CFeeRate> CCoinControl::m_discard_feerate

Override the discard feerate estimation with m_discard_feerate in CreateTransaction if set.

Definition at line 43 of file coincontrol.h.

Referenced by CWallet::CreateTransaction(), CTransactionBuilder::CTransactionBuilder(), CTransactionBuilder::IsDust(), SetNull(), and CTransactionBuilder::ToString().

◆ m_fee_mode

FeeEstimateMode CCoinControl::m_fee_mode

Fee estimation mode to control arguments to estimateSmartFee.

Definition at line 47 of file coincontrol.h.

Referenced by fundrawtransaction(), GetMinimumFee(), sendmany(), sendtoaddress(), and SetNull().

◆ m_feerate

◆ nCoinType

◆ setSelected

std::set<COutPoint> CCoinControl::setSelected
private

The documentation for this class was generated from the following file:
Released under the MIT license