fix: merge Taproot sigs when updating PSBT
This commit is contained in:
parent
1cde178abe
commit
86e30d2d83
@ -692,27 +692,7 @@ impl Action for UpdateAction {
|
||||
self.success = true;
|
||||
self.error = None;
|
||||
let psbt = Psbt::from_str(&self.updated.value).expect("Already checked");
|
||||
for (i, input) in tx.psbt.inputs.iter_mut().enumerate() {
|
||||
if tx
|
||||
.psbt
|
||||
.unsigned_tx
|
||||
.input
|
||||
.get(i)
|
||||
.map(|tx_in| tx_in.previous_output)
|
||||
!= psbt
|
||||
.unsigned_tx
|
||||
.input
|
||||
.get(i)
|
||||
.map(|tx_in| tx_in.previous_output)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if let Some(updated_input) = psbt.inputs.get(i) {
|
||||
input
|
||||
.partial_sigs
|
||||
.extend(updated_input.partial_sigs.clone().into_iter());
|
||||
}
|
||||
}
|
||||
merge_signatures(&mut tx.psbt, &psbt);
|
||||
tx.sigs = self
|
||||
.wallet
|
||||
.main_descriptor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user