Skip to content

Commit

Permalink
additional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Jun 19, 2020
1 parent 6d4b491 commit e2778ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bip-0078.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ public async Task<PSBT> RequestPayjoin(
PayjoinClientParameters optionalParameters)
{
Log("signed PSBT" + signedPSBT);
// Extracting the pj link.
var endpoint = bip21.ExtractPayjointEndpoint();
if (signedPSBT.IsAllFinalized())
throw new InvalidOperationException("The original PSBT should not be finalized.");
Expand All @@ -428,6 +429,7 @@ public async Task<PSBT> RequestPayjoin(
{
originalOutputs.Enqueue((originalGlobalTx.Outputs[i], signedPSBT.Outputs[i]));
}
// Add the client side query string parameters
endpoint = ApplyOptionalParameters(endpoint, optionalParameters);
Log("original PSBT" + originalPSBT);
PSBT proposal = await SendOriginalTransaction(endpoint, originalPSBT, cancellationToken);
Expand Down

0 comments on commit e2778ba

Please sign in to comment.