aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coincontrol.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-01-15 16:10:13 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-01-24 15:52:05 +0000
commit31dbd5af4863d73c3215355ec5cf85bde2ddc5d8 (patch)
treec016eae3dcae0487243260c97342651d2a90a4a0 /src/wallet/coincontrol.h
parent95941396fff81f60d75fc8cca70716b26efe820e (diff)
downloadbitcoin-31dbd5af4863d73c3215355ec5cf85bde2ddc5d8.tar.xz
[wallet] Add change type to CCoinControl
Diffstat (limited to 'src/wallet/coincontrol.h')
-rw-r--r--src/wallet/coincontrol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h
index e1afa2de03..458e770e03 100644
--- a/src/wallet/coincontrol.h
+++ b/src/wallet/coincontrol.h
@@ -16,7 +16,10 @@
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;
//! 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
@@ -40,6 +43,7 @@ public:
void SetNull()
{
destChange = CNoDestination();
+ change_type = g_change_type;
fAllowOtherInputs = false;
fAllowWatchOnly = false;
setSelected.clear();