1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

additional comments

This commit is contained in:
nicolas.dorier 2020-06-19 14:31:19 +09:00
parent 6d4b491b31
commit e2778babfb
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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.");
@ -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);