From 4bf02f833c98ed65a3ad822ab6555ea34f93999b Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 15 Jan 2025 09:26:48 +0200 Subject: [PATCH] remove payjoin verification step to check there is no previous utxo information in the psbt as per bip78 change --- src/main/java/com/sparrowwallet/sparrow/payjoin/Payjoin.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/payjoin/Payjoin.java b/src/main/java/com/sparrowwallet/sparrow/payjoin/Payjoin.java index 231ac3b1..0732b55b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/payjoin/Payjoin.java +++ b/src/main/java/com/sparrowwallet/sparrow/payjoin/Payjoin.java @@ -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();