aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coincontrol.h
diff options
context:
space:
mode:
authort-bast <bastuc@hotmail.fr>2021-03-10 15:37:18 +0100
committert-bast <bastuc@hotmail.fr>2021-04-30 18:53:47 +0200
commit11d6459b6e101f05f36e13799c400bef82d2fc21 (patch)
treee467b32e008eca8e9978766ab1d783059de3f35f /src/wallet/coincontrol.h
parent480bf01c295527bd212964efe4df3bb886db5654 (diff)
downloadbitcoin-11d6459b6e101f05f36e13799c400bef82d2fc21.tar.xz
rpc: include_unsafe option for fundrawtransaction
Allow RPC users to opt-in to unsafe inputs when funding a raw transaction. Applications that need to manage a complex RBF flow (such as lightning nodes using anchor outputs) are very limited if they can only use safe inputs. Fixes #21299
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 716e1922fe..85cbec76b7 100644
--- a/src/wallet/coincontrol.h
+++ b/src/wallet/coincontrol.h
@@ -29,6 +29,8 @@ public:
std::optional<OutputType> m_change_type;
//! If false, only selected inputs are used
bool m_add_inputs = true;
+ //! If false, only safe inputs will be used
+ bool m_include_unsafe_inputs = false;
//! If false, allows unselected inputs, but requires all selected inputs be used
bool fAllowOtherInputs = false;
//! Includes watch only addresses which are solvable