577 | @@ -578,7 +578,7 @@ bool PSBTInputSigned(const PSBTInput& input);
578 | * txdata should be the output of PrecomputePSBTData (which can be shared across
579 | * multiple SignPSBTInput calls). If it is nullptr, a dummy signature will be created.
580 | **/
581 | -bool SignPSBTInput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index, const PrecomputedTransactionData* txdata, int sighash = SIGHASH_ALL, SignatureData* out_sigdata = nullptr);
582 | +bool SignPSBTInput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index, const PrecomputedTransactionData* txdata, int sighash = SIGHASH_ALL, bool finalize = true, SignatureData* out_sigdata = nullptr);
Please take more care when changing function signatures. This could silently cast a SignatureData* to a bool when merging another PR created prior to the API change.
Changed to the last parameter