Skip to content

Commit

Permalink
Remove merge_unsigned_tx doctest
Browse files Browse the repository at this point in the history
This doctest wasn't passing and prone to getting outdated quick.
Best option is to just remove it.
  • Loading branch information
0xBEEFCAF3 committed Feb 6, 2025
1 parent ba7444b commit f04f06b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions payjoin/src/psbt/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ use bitcoin::Psbt;
/// Note: this method does not merge non inputs or outputs
/// Note: if there are duplicate inputs, the first input will be kept
/// Note: if there are duplicate outputs, both outputs will be kept
/// ```no_run
/// let psbts = vec![psbt_1.clone(), psbt_2.clone(), ..., psbt_n.clone()];
/// let merged_psbt = psbts.into_iter().reduce(merge_unsigned_tx).unwrap();
/// ```
pub(crate) fn merge_unsigned_tx(acc: Psbt, psbt: Psbt) -> Psbt {
let mut unsigned_tx = acc.unsigned_tx;
unsigned_tx.input.extend(psbt.unsigned_tx.input);
Expand Down

0 comments on commit f04f06b

Please sign in to comment.