refactor: Avoid copies by using const references or by move-construction

This commit is contained in:
MarcoFalke
2025-01-13 21:39:03 +01:00
parent 2d380aee43
commit faf0c2d942
10 changed files with 15 additions and 13 deletions

View File

@@ -322,7 +322,7 @@ bool PSBTInputSigned(const PSBTInput& input)
return !input.final_script_sig.empty() || !input.final_script_witness.IsNull();
}
bool PSBTInputSignedAndVerified(const PartiallySignedTransaction psbt, unsigned int input_index, const PrecomputedTransactionData* txdata)
bool PSBTInputSignedAndVerified(const PartiallySignedTransaction& psbt, unsigned int input_index, const PrecomputedTransactionData* txdata)
{
CTxOut utxo;
assert(input_index < psbt.inputs.size());