aboutsummaryrefslogtreecommitdiff
path: root/src/coincontrol.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2015-04-24 18:27:00 -0700
committerMatt Corallo <git@bluematt.me>2015-06-11 01:03:23 -0700
commit2d84e22703594643c70dfa36dac2a83f8f0f713e (patch)
tree8b51c1108f6913272262c1794ee6f22b9ee27f1c /src/coincontrol.h
parent9b4e7d9a5ec0f69c175d23dc9c94ed723147cf45 (diff)
Small tweaks to CCoinControl for fundrawtransaction
Diffstat (limited to 'src/coincontrol.h')
-rw-r--r--src/coincontrol.h5
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());
}