diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-01 19:31:53 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-04 11:49:29 +0200 |
commit | fac6cfc50f65c610f2df9af3ec2efff5eade6661 (patch) | |
tree | a2f3f0764589e47f8305ed1c1215400fa7e8e233 /src/psbt.cpp | |
parent | d17bbc3c484edae2552a28471d8879fca9664bcc (diff) |
refactor: Change * to & in MutableTransactionSignatureCreator
Diffstat (limited to 'src/psbt.cpp')
-rw-r--r-- | src/psbt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psbt.cpp b/src/psbt.cpp index 6465e353be..c1c8a385cc 100644 --- a/src/psbt.cpp +++ b/src/psbt.cpp @@ -234,7 +234,7 @@ void UpdatePSBTOutput(const SigningProvider& provider, PartiallySignedTransactio // Construct a would-be spend of this output, to update sigdata with. // Note that ProduceSignature is used to fill in metadata (not actual signatures), // so provider does not need to provide any private keys (it can be a HidingSigningProvider). - MutableTransactionSignatureCreator creator(&tx, /*input_idx=*/0, out.nValue, SIGHASH_ALL); + MutableTransactionSignatureCreator creator(tx, /*input_idx=*/0, out.nValue, SIGHASH_ALL); ProduceSignature(provider, creator, out.scriptPubKey, sigdata); // Put redeem_script, witness_script, key paths, into PSBTOutput. @@ -301,7 +301,7 @@ bool SignPSBTInput(const SigningProvider& provider, PartiallySignedTransaction& if (txdata == nullptr) { sig_complete = ProduceSignature(provider, DUMMY_SIGNATURE_CREATOR, utxo.scriptPubKey, sigdata); } else { - MutableTransactionSignatureCreator creator(&tx, index, utxo.nValue, txdata, sighash); + MutableTransactionSignatureCreator creator(tx, index, utxo.nValue, txdata, sighash); sig_complete = ProduceSignature(provider, creator, utxo.scriptPubKey, sigdata); } // Verify that a witness signature was produced in case one was required. |