Skip to content

Commit 084402f

Browse files
committed
BOLT 1: define what offered and negotiated mean.
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]>
1 parent 900be99 commit 084402f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

01-messaging.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ Once authentication is complete, the first message reveals the features supporte
255255

256256
[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.
257257

258+
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.
259+
258260
The `features` field MUST be padded to bytes with 0s.
259261

260262
1. type: 16 (`init`)

0 commit comments

Comments
 (0)