Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BIP 78 Implementation to Match Protocol Changes #9

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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