aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coincontrol.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-02-10 21:06:35 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-03-17 16:10:01 -0400
commitfab8a6f609d15863545955d6523c616c2a97eeab (patch)
treea6ec9f9c5572e341ac150f470ed7dc24accfae28 /src/wallet/coincontrol.h
parent7be9a9a570c1140048f8781ced1111e1d930e517 (diff)
downloadbitcoin-fab8a6f609d15863545955d6523c616c2a97eeab.tar.xz
wallet: Change output type globals to members
Diffstat (limited to 'src/wallet/coincontrol.h')
-rw-r--r--src/wallet/coincontrol.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h
index 458e770e03..52d6a291c9 100644
--- a/src/wallet/coincontrol.h
+++ b/src/wallet/coincontrol.h
@@ -18,8 +18,8 @@ class CCoinControl
public:
//! Custom change destination, if not set an address is generated
CTxDestination destChange;
- //! Custom change type, ignored if destChange is set, defaults to g_change_type
- OutputType change_type;
+ //! Override the default change type if set, ignored if destChange is set
+ boost::optional<OutputType> m_change_type;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs;
//! Includes watch only addresses which match the ISMINE_WATCH_SOLVABLE criteria
@@ -43,7 +43,7 @@ public:
void SetNull()
{
destChange = CNoDestination();
- change_type = g_change_type;
+ m_change_type.reset();
fAllowOtherInputs = false;
fAllowWatchOnly = false;
setSelected.clear();