Skip to content

Commit

Permalink
Allow proposedPsbtInput UTXOs
Browse files Browse the repository at this point in the history
BIP 78 was updated to permit this behavior in order to be in compliance
with BIP 174 (PSBT).

See: bitcoin/bips#1396
  • Loading branch information
DanGould committed Jan 15, 2025
1 parent b15b03f commit 7a64d95
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ts_src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ export class PayjoinClient {
// Verify the PSBT input is not finalized
if (isFinalized(proposedPSBTInput))
throw new Error('The receiver finalized one of our inputs');
// Verify that <code>non_witness_utxo</code> and <code>witness_utxo</code> are not specified.
if (proposedPSBTInput.nonWitnessUtxo || proposedPSBTInput.witnessUtxo)
throw new Error(
'The receiver added non_witness_utxo or witness_utxo to one of our inputs',
);
if (proposedTxIn.sequence != null) {
sequences.add(proposedTxIn.sequence);
}
Expand Down

0 comments on commit 7a64d95

Please sign in to comment.