aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coincontrol.h
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-07-12 13:30:10 +0100
committerSjors Provoost <sjors@sprovoost.nl>2020-03-12 13:07:17 +0100
commit79804fe24bd00e183382dfbcab9343960d158aa5 (patch)
tree297bd50ec5f73a77af0d2e7e9104bc22919f9136 /src/wallet/coincontrol.h
parent5c73645ac79f1d12611051d2e9467a003383ffd9 (diff)
downloadbitcoin-79804fe24bd00e183382dfbcab9343960d158aa5.tar.xz
[rpc] walletcreatefundedpsbt: don't automatically append inputs
When the user doesn't specificy inputs, it makes sense to automatically select them. But when the user does specify inputs, we now fail if the amount is insufficient, unless addInputs is set to true.
Diffstat (limited to 'src/wallet/coincontrol.h')
-rw-r--r--src/wallet/coincontrol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/coincontrol.h b/src/wallet/coincontrol.h
index 2893d0ab3d..c499b0ff25 100644
--- a/src/wallet/coincontrol.h
+++ b/src/wallet/coincontrol.h
@@ -26,6 +26,8 @@ public:
CTxDestination destChange;
//! Override the default change type if set, ignored if destChange is set
Optional<OutputType> m_change_type;
+ //! If false, only selected inputs are used
+ bool m_add_inputs;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs;
//! Includes watch only addresses which are solvable