File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,13 @@ impl NegotiationContext {
233
233
return Err ( AbortReason :: ExceededMaximumSatsAllowed ) ;
234
234
}
235
235
236
- // The receiving node:
236
+ // According to the current spec, a receiving node:
237
237
// - MUST accept P2WSH, P2WPKH, P2TR scripts
238
238
// - MAY fail the negotiation if script is non-standard
239
+ //
240
+ // However, all witness scripts are standard now, and we don't really care if the sender
241
+ // wants to add an output with a witness V2+ script that could be spent by anyone.
242
+ // That's none of our business really ¯\_(ツ)_/¯
239
243
if !msg. script . is_v0_p2wpkh ( ) && !msg. script . is_v0_p2wsh ( ) && !msg. script . is_v1_p2tr ( ) {
240
244
return Err ( AbortReason :: InvalidOutputScript ) ;
241
245
}
You can’t perform that action at this time.
0 commit comments