diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2020-01-31 18:12:14 -0800 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2020-06-18 23:32:59 -0700 |
commit | 5dd0c03ffa3aeaa69d8a3a716f902f450d5eaaec (patch) | |
tree | 169889777b3202574728ff54a3b65592fc67e906 /src/wallet/wallet.h | |
parent | 9e7b23b73387600d175aff8bd5e6624dd51f86e7 (diff) | |
download | bitcoin-5dd0c03ffa3aeaa69d8a3a716f902f450d5eaaec.tar.xz |
FillPSBT: report number of inputs signed (or would sign)
In FillPSBT, optionally report the number of inputs we successfully
signed, as an out parameter. If "sign" is false, instead report the
number of inputs for which GetSigningProvider does not return nullptr.
(This is a potentially overbroad estimate of inputs we could sign.)
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index cf000b0b70..9931671fb4 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -964,7 +964,8 @@ public: bool& complete, int sighash_type = 1 /* SIGHASH_ALL */, bool sign = true, - bool bip32derivs = true) const; + bool bip32derivs = true, + size_t* n_signed = nullptr) const; /** * Create a new transaction paying the recipients with a set of coins |