mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-19 12:08:05 +00:00
Do not crash reference implementation if there is no address in the bip21
This commit is contained in:
parent
a2a085cdb4
commit
a3fbc6c620
@ -424,6 +424,7 @@ public async Task<PSBT> RequestPayjoin(
|
|||||||
for (int i = 0; i < originalGlobalTx.Outputs.Count; i++)
|
for (int i = 0; i < originalGlobalTx.Outputs.Count; i++)
|
||||||
{
|
{
|
||||||
if (optionalParameters.DisableOutputSubstitution ||
|
if (optionalParameters.DisableOutputSubstitution ||
|
||||||
|
bip21.Address == null ||
|
||||||
signedPSBT.Outputs[i].ScriptPubKey != bip21.Address.ScriptPubKey)
|
signedPSBT.Outputs[i].ScriptPubKey != bip21.Address.ScriptPubKey)
|
||||||
ourOutputs.Enqueue((originalGlobalTx.Outputs[i], signedPSBT.Outputs[i]));
|
ourOutputs.Enqueue((originalGlobalTx.Outputs[i], signedPSBT.Outputs[i]));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user