diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coincontrol.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coincontrol.h b/src/coincontrol.h index 92fae9847c..3e8de83c39 100644 --- a/src/coincontrol.h +++ b/src/coincontrol.h @@ -12,6 +12,8 @@ class CCoinControl { public: CTxDestination destChange; + //! If false, allows unselected inputs, but requires all selected inputs be used + bool fAllowOtherInputs; CCoinControl() { @@ -21,6 +23,7 @@ public: void SetNull() { destChange = CNoDestination(); + fAllowOtherInputs = false; setSelected.clear(); } @@ -50,7 +53,7 @@ public: setSelected.clear(); } - void ListSelected(std::vector<COutPoint>& vOutpoints) + void ListSelected(std::vector<COutPoint>& vOutpoints) const { vOutpoints.assign(setSelected.begin(), setSelected.end()); } |