remove payjoin verification step to check there is no previous utxo information in the psbt as per bip78 change

This commit is contained in:
Craig Raw 2025-01-15 09:26:48 +02:00
parent 7ef51e6a5d
commit 4bf02f833c

View file

@ -160,10 +160,6 @@ public class Payjoin {
if(proposedPSBTInput.isFinalized()) {
throw new PayjoinReceiverException("The receiver finalized one of the original inputs");
}
// Verify that non_witness_utxo and witness_utxo are not specified.
if(proposedPSBTInput.getNonWitnessUtxo() != null || proposedPSBTInput.getWitnessUtxo() != null) {
throw new PayjoinReceiverException("The receiver added non_witness_utxo or witness_utxo to one of the original inputs");
}
sequences.add(proposedTxIn.getSequenceNumber());
PSBTInput originalPSBTInput = originalInput.getValue();