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< CFeeRate > | m_feerate |
Override the default payTxFee if set. More... | |
boost::optional< CFeeRate > | m_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< COutPoint > | setSelected |
Detailed Description
Coin Control Features.
Definition at line 28 of file coincontrol.h.
Constructor & Destructor Documentation
◆ CCoinControl()
|
inline |
Definition at line 51 of file coincontrol.h.
References SetNull().
Member Function Documentation
◆ HasSelected()
|
inline |
Definition at line 71 of file coincontrol.h.
References setSelected.
Referenced by CWallet::AvailableCoins(), CWalletTx::GetAnonymizedCredit(), and CWallet::SelectCoins().
◆ IsSelected()
|
inline |
Definition at line 76 of file coincontrol.h.
References setSelected.
Referenced by CWallet::AvailableCoins(), CWallet::FundTransaction(), and CWalletTx::GetAnonymizedCredit().
◆ IsUsingPrivateSend()
|
inline |
Definition at line 108 of file coincontrol.h.
References nCoinType, and ONLY_FULLY_MIXED.
Referenced by CoinControlDialog::buttonToggleLockClicked(), and SendCoinsDialog::send().
◆ ListSelected()
|
inline |
Definition at line 96 of file coincontrol.h.
References setSelected.
Referenced by CWallet::SelectCoins(), and CoinControlDialog::updateLabels().
◆ Select()
|
inline |
Definition at line 81 of file coincontrol.h.
References setSelected.
Referenced by CTransactionBuilder::CTransactionBuilder(), CWallet::FundTransaction(), CWallet::GetBudgetSystemCollateralTX(), and CoinControlDialog::viewItemChanged().
◆ SetNull()
|
inline |
Definition at line 56 of file coincontrol.h.
References ALL_COINS, destChange, fAllowOtherInputs, fAllowWatchOnly, fOverrideFeeRate, fRequireAllInputs, m_confirm_target, m_discard_feerate, m_fee_mode, m_feerate, nCoinType, setSelected, and UNSET.
Referenced by CCoinControl(), and SendCoinsDialog::coinControlFeatureChanged().
◆ UnSelect()
|
inline |
Definition at line 86 of file coincontrol.h.
References setSelected.
Referenced by CoinControlDialog::updateLabels(), CoinControlDialog::updateView(), and CoinControlDialog::viewItemChanged().
◆ UnSelectAll()
|
inline |
Definition at line 91 of file coincontrol.h.
References setSelected.
Referenced by CoinControlDialog::buttonSelectAllClicked(), SendCoinsDialog::clear(), and SendCoinsDialog::send().
◆ UsePrivateSend()
|
inline |
Definition at line 103 of file coincontrol.h.
References ALL_COINS, nCoinType, and ONLY_FULLY_MIXED.
Referenced by CoinControlDialog::coinControl(), SendCoinsDialog::send(), sendmany(), and sendtoaddress().
Member Data Documentation
◆ destChange
CTxDestination CCoinControl::destChange |
Definition at line 31 of file coincontrol.h.
Referenced by SendCoinsDialog::coinControlChangeChecked(), SendCoinsDialog::coinControlChangeEdited(), CWallet::CreateTransaction(), CTransactionBuilder::CTransactionBuilder(), fundrawtransaction(), and SetNull().
◆ 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
boost::optional<CFeeRate> CCoinControl::m_feerate |
Override the default payTxFee if set.
Definition at line 41 of file coincontrol.h.
Referenced by CTransactionBuilder::CTransactionBuilder(), fundrawtransaction(), CTransactionBuilder::GetFee(), GetMinimumFee(), SetNull(), CTransactionBuilder::ToString(), SendCoinsDialog::updateCoinControlState(), and SendCoinsDialog::updateSmartFeeLabel().
◆ nCoinType
CoinType CCoinControl::nCoinType |
Controls which types of coins are allowed to be used (default: ALL_COINS)
Definition at line 49 of file coincontrol.h.
Referenced by CWallet::AvailableCoins(), CWallet::CreateTransaction(), CWallet::GetCollateralTxDSIn(), CWallet::GetMasternodeOutpointAndKeys(), CWallet::HasCollateralInputs(), IsUsingPrivateSend(), listunspent(), CWallet::SelectCoins(), CWallet::SelectDenominatedAmounts(), CWallet::SelectPSInOutPairsByDenominations(), SetNull(), and UsePrivateSend().
◆ setSelected
|
private |
Definition at line 114 of file coincontrol.h.
Referenced by HasSelected(), IsSelected(), ListSelected(), Select(), SetNull(), UnSelect(), and UnSelectAll().
The documentation for this class was generated from the following file:
- src/wallet/coincontrol.h