aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-11-09 14:02:21 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-01-22 13:42:36 +0100
commite2ad343f69af4f924b22dccf94a52b6431ef6e3c (patch)
tree054005f25ff2f992f44f12c88bae5885454d79ff /src/wallet/scriptpubkeyman.cpp
parent651fb034d85eb5db561bfd24b74f7271417defa5 (diff)
downloadbitcoin-e2ad343f69af4f924b22dccf94a52b6431ef6e3c.tar.xz
wallet: remove unused `SignatureData` instances in spkm's `FillPSBT` methods
These are filled with signature data from a PSBT input, but not used anywhere after, hence they can be removed.
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r--src/wallet/scriptpubkeyman.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp
index 6bbe6a1647..b7420d5fb7 100644
--- a/src/wallet/scriptpubkeyman.cpp
+++ b/src/wallet/scriptpubkeyman.cpp
@@ -652,8 +652,6 @@ TransactionError LegacyScriptPubKeyMan::FillPSBT(PartiallySignedTransaction& psb
// There's no UTXO so we can just skip this now
continue;
}
- SignatureData sigdata;
- input.FillSignatureData(sigdata);
SignPSBTInput(HidingSigningProvider(this, !sign, !bip32derivs), psbtx, i, &txdata, sighash_type, nullptr, finalize);
bool signed_one = PSBTInputSigned(input);
@@ -2520,8 +2518,6 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction&
// There's no UTXO so we can just skip this now
continue;
}
- SignatureData sigdata;
- input.FillSignatureData(sigdata);
std::unique_ptr<FlatSigningProvider> keys = std::make_unique<FlatSigningProvider>();
std::unique_ptr<FlatSigningProvider> script_keys = GetSigningProvider(script, /*include_private=*/sign);