Skip to content

Commit

Permalink
BOLT 1: define what offered and negotiated mean.
Browse files Browse the repository at this point in the history
i.e. it was present in the init feature bits.  We use this in several places, but assume everyone knows what it means.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Aug 30, 2023
1 parent 900be99 commit 084402f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 01-messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ Once authentication is complete, the first message reveals the features supporte

[BOLT #9](09-features.md) specifies lists of features. Each feature is generally represented by 2 bits. The least-significant bit is numbered 0, which is _even_, and the next most significant bit is numbered 1, which is _odd_. For historical reasons, features are divided into global and local feature bitmasks.

We refer to a feature as *offered* if a peer set it in the `init` message for the current connection (as either even or odd), and *negotiated* if both peers offered it.

The `features` field MUST be padded to bytes with 0s.

1. type: 16 (`init`)
Expand Down

0 comments on commit 084402f

Please sign in to comment.