mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge c27330897d into merged_master (Bitcoin PR #18027)
This commit is contained in:
commit
4839db857d
24 changed files with 592 additions and 93 deletions
11
src/psbt.cpp
11
src/psbt.cpp
|
|
@ -235,6 +235,17 @@ bool PSBTInputSigned(const PSBTInput& input)
|
|||
return !input.final_script_sig.empty() || !input.final_script_witness.IsNull();
|
||||
}
|
||||
|
||||
size_t CountPSBTUnsignedInputs(const PartiallySignedTransaction& psbt) {
|
||||
size_t count = 0;
|
||||
for (const auto& input : psbt.inputs) {
|
||||
if (!PSBTInputSigned(input)) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
void UpdatePSBTOutput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index)
|
||||
{
|
||||
const CTxOut& out = psbt.tx->vout.at(index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue