aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/wallet.cpp
diff options
context:
space:
mode:
authorGlenn Willen <[email protected]>2020-01-31 18:12:14 -0800
committerGlenn Willen <[email protected]>2020-06-18 23:32:59 -0700
commit5dd0c03ffa3aeaa69d8a3a716f902f450d5eaaec (patch)
tree169889777b3202574728ff54a3b65592fc67e906 /src/interfaces/wallet.cpp
parentImprove TransactionErrorString messages. (diff)
downloaddiscoin-5dd0c03ffa3aeaa69d8a3a716f902f450d5eaaec.tar.xz
discoin-5dd0c03ffa3aeaa69d8a3a716f902f450d5eaaec.zip
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/interfaces/wallet.cpp')
-rw-r--r--src/interfaces/wallet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp
index 397403d30..b65eb72b1 100644
--- a/src/interfaces/wallet.cpp
+++ b/src/interfaces/wallet.cpp
@@ -335,9 +335,10 @@ public:
bool sign,
bool bip32derivs,
PartiallySignedTransaction& psbtx,
- bool& complete) override
+ bool& complete,
+ size_t* n_signed) override
{
- return m_wallet->FillPSBT(psbtx, complete, sighash_type, sign, bip32derivs);
+ return m_wallet->FillPSBT(psbtx, complete, sighash_type, sign, bip32derivs, n_signed);
}
WalletBalances getBalances() override
{