Skip to content

Commit

Permalink
BOLT 1: Restore all-zero error semantics
Browse files Browse the repository at this point in the history
There were valid uses for "I don't want to talk to you anymore" apparently!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Nov 8, 2021
1 parent 5c745fd commit 51b8552
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 01-messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ For simplicity of diagnosis, it's often useful to tell a peer that something is

#### Requirements

The channel is referred to by `channel_id`, unless `channel_id` is 0 (i.e. all bytes are 0), in which case it refers to all channels.

The funding node:
- for all error messages sent before (and including) the `funding_created` message:
- MUST use `temporary_channel_id` in lieu of `channel_id`.
Expand All @@ -330,7 +332,7 @@ A sending node:
- SHOULD send `error` for protocol violations or internal errors that make channels unusable or that make further communication unusable.
- SHOULD send `error` with the unknown `channel_id` in reply to messages of type `32`-`255` related to unknown channels.
- when sending `error`:
- MUST fail the channel referred to by the error message.
- MUST fail the channel(s) referred to by the error message.
- when sending `warning`:
- MAY set `channel_id` to all zero if the warning is not related to a specific channel.
- MAY close the connection after sending.
Expand Down

0 comments on commit 51b8552

Please sign in to comment.