Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/coincontrol.h
| Show All 11 Lines | |||||
| public: | public: | ||||
| CTxDestination destChange; | CTxDestination destChange; | ||||
| //! If false, allows unselected inputs, but requires all selected inputs be | //! If false, allows unselected inputs, but requires all selected inputs be | ||||
| //! used | //! used | ||||
| bool fAllowOtherInputs; | bool fAllowOtherInputs; | ||||
| //! Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE | //! Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE | ||||
| //! criteria | //! criteria | ||||
| bool fAllowWatchOnly; | bool fAllowWatchOnly; | ||||
| //! Minimum absolute fee (not per kilobyte) | |||||
| Amount nMinimumTotalFee; | |||||
| //! Override estimated feerate | //! Override estimated feerate | ||||
| bool fOverrideFeeRate; | bool fOverrideFeeRate; | ||||
| //! Feerate to use if overrideFeeRate is true | //! Feerate to use if overrideFeeRate is true | ||||
| CFeeRate nFeeRate; | CFeeRate nFeeRate; | ||||
| //! Override the default confirmation target, 0 = use default | //! Override the default confirmation target, 0 = use default | ||||
| int nConfirmTarget; | int nConfirmTarget; | ||||
| CCoinControl() { SetNull(); } | CCoinControl() { SetNull(); } | ||||
| void SetNull() { | void SetNull() { | ||||
| destChange = CNoDestination(); | destChange = CNoDestination(); | ||||
| fAllowOtherInputs = false; | fAllowOtherInputs = false; | ||||
| fAllowWatchOnly = false; | fAllowWatchOnly = false; | ||||
| setSelected.clear(); | setSelected.clear(); | ||||
| nMinimumTotalFee = Amount::zero(); | |||||
| nFeeRate = CFeeRate(Amount::zero()); | nFeeRate = CFeeRate(Amount::zero()); | ||||
| fOverrideFeeRate = false; | fOverrideFeeRate = false; | ||||
| nConfirmTarget = 0; | nConfirmTarget = 0; | ||||
| } | } | ||||
| bool HasSelected() const { return (setSelected.size() > 0); } | bool HasSelected() const { return (setSelected.size() > 0); } | ||||
| bool IsSelected(const COutPoint &output) const { | bool IsSelected(const COutPoint &output) const { | ||||
| Show All 18 Lines | |||||