From 4f46b2d3e137ed847ef2bf60778a7bfae1cf78f6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 24 Apr 2015 18:27:00 -0700 Subject: [PATCH] Small tweaks to CCoinControl for fundrawtransaction --- src/coincontrol.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coincontrol.h b/src/coincontrol.h index 92fae9847c..b1efb96a32 100644 --- a/src/coincontrol.h +++ b/src/coincontrol.h @@ -12,6 +12,7 @@ class CCoinControl { public: CTxDestination destChange; + bool fAllowOtherInputs; CCoinControl() { @@ -21,6 +22,7 @@ public: void SetNull() { destChange = CNoDestination(); + fAllowOtherInputs = false; setSelected.clear(); } @@ -50,7 +52,7 @@ public: setSelected.clear(); } - void ListSelected(std::vector& vOutpoints) + void ListSelected(std::vector& vOutpoints) const { vOutpoints.assign(setSelected.begin(), setSelected.end()); }