aboutsummaryrefslogtreecommitdiff
path: root/src/coincontrol.h
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2015-04-23 21:42:49 -0700
committerMatt Corallo <[email protected]>2015-07-20 16:01:38 -0700
commit6bdb474dc9dd34e1a5b13ce9494a936cba77e027 (patch)
tree9f48399117d4b22be76ac33b046437da77045615 /src/coincontrol.h
parentAdd logic to track pubkeys as watch-only, not just scripts (diff)
downloaddiscoin-6bdb474dc9dd34e1a5b13ce9494a936cba77e027.tar.xz
discoin-6bdb474dc9dd34e1a5b13ce9494a936cba77e027.zip
Implement watchonly support in fundrawtransaction
Some code and test cases stolen from Bryan Bishop <[email protected]> (pull #5524).
Diffstat (limited to 'src/coincontrol.h')
-rw-r--r--src/coincontrol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coincontrol.h b/src/coincontrol.h
index 3e8de83c3..74d524c0a 100644
--- a/src/coincontrol.h
+++ b/src/coincontrol.h
@@ -14,6 +14,8 @@ public:
CTxDestination destChange;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs;
+ //! Includes watch only addresses which match the ISMINE_WATCH_PUBKEY criteria
+ bool fAllowWatchOnly;
CCoinControl()
{
@@ -24,6 +26,7 @@ public:
{
destChange = CNoDestination();
fAllowOtherInputs = false;
+ fAllowWatchOnly = false;
setSelected.clear();
}