1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

BOLT 1: options must be included if negotiated, not if understood.

Obviously you can't include fields you don't understand, but importantly
if the other side doesn't agree, you don't need to include them.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-06-27 06:18:44 +09:30
parent 310d9c3b10
commit a8207ec316

View File

@ -60,7 +60,7 @@ A node:
- MUST ignore any additional data within a message beyond the length that it expects for that type.
- upon receiving a known message with insufficient length for the contents:
- MUST fail the channels.
- that understands an option in this specification:
- that negotiates an option in this specification:
- MUST include all the fields annotated with that option.
### Rationale