Skip to content

Commit

Permalink
fixup: disallow P2SH scripts in outputs
Browse files Browse the repository at this point in the history
P2SH outputs have larger dust requirements than native SegWit (and
Taproot) scripts; we disallow the creation of them on funding txs as a
they're problematic for relay when allowing dust limits below 546 sats
(see lightning#894)

Suggested-by: @t-bast
  • Loading branch information
niftynei committed Aug 3, 2022
1 parent b4f0ef0 commit 4e292d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ The sending node:

The receiving node:
- MUST add the specified output to the transaction
- MUST accept P2SH, P2WSH, P2WPKH, P2PKH, P2TR `script`s
- MUST accept P2WSH, P2WPKH, P2PKH, P2TR `script`s
- MAY fail the negotiation if `script` is non-standard
- MUST fail the negotiation if:
- the `serial_id` is already included in the transaction
Expand Down

0 comments on commit 4e292d4

Please sign in to comment.