From 72b763e4521e674990da5dd1999b7a8c7bd3ba8c Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Wed, 7 Sep 2022 10:47:20 +0200 Subject: wallet: annotate bools in descriptor SPKM FillPSBT() --- src/wallet/scriptpubkeyman.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wallet/scriptpubkeyman.cpp') diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index c109533d7a..1589e52deb 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -2495,7 +2495,7 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction& input.FillSignatureData(sigdata); std::unique_ptr keys = std::make_unique(); - std::unique_ptr script_keys = GetSigningProvider(script, sign); + std::unique_ptr script_keys = GetSigningProvider(script, /*include_private=*/sign); if (script_keys) { keys->Merge(std::move(*script_keys)); } else { @@ -2536,7 +2536,7 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction& } } - SignPSBTInput(HidingSigningProvider(keys.get(), !sign, !bip32derivs), psbtx, i, &txdata, sighash_type, nullptr, finalize); + SignPSBTInput(HidingSigningProvider(keys.get(), /*hide_secret=*/!sign, /*hide_origin=*/!bip32derivs), psbtx, i, &txdata, sighash_type, nullptr, finalize); bool signed_one = PSBTInputSigned(input); if (n_signed && (signed_one || !sign)) { @@ -2553,7 +2553,7 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction& if (!keys) { continue; } - UpdatePSBTOutput(HidingSigningProvider(keys.get(), true, !bip32derivs), psbtx, i); + UpdatePSBTOutput(HidingSigningProvider(keys.get(), /*hide_secret=*/true, /*hide_origin=*/!bip32derivs), psbtx, i); } return TransactionError::OK; -- cgit v1.2.3