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

BOLT 2: apply updated stylesheet guidelines for data measurements;

This commit is contained in:
Landon Mutch 2017-11-23 21:21:29 -08:00 committed by Rusty Russell
parent 07f44a4419
commit 4cc95f8190
2 changed files with 6 additions and 3 deletions

View File

@ -26,8 +26,11 @@ temporarily included here for reference purposes.
- numbers and calculations - numbers and calculations
- spell out small (<10) amounts - spell out small (<10) amounts
- type digits and enumerations - type digits and enumerations
- e.g. 'two 2-byte instances set to 0s', 'one 4-byte instance set to 1s', 'the old one is equal to 1 greater than value' - e.g. 'two 2-byte blocks set to 0s', 'one 4-byte block set to 1s', 'the other one is equal to 1'
- exceptions e.g. 'non-zero (digits)', 'weight of 1 byte' - exceptions, e.g. 'non-zero', '1 byte in length'
- data measurements
- type digits for quantities of information, use hyphen when unit is an adjective
- e.g. 'a 32-bit block is 32 bits in length'
- for typed calculations - for typed calculations
- space both sides of operators (except '^' and negative numbers) - space both sides of operators (except '^' and negative numbers)
- e.g. 5 - 3^2 * 4 = -31 - e.g. 5 - 3^2 * 4 = -31

View File

@ -88,7 +88,7 @@ a buffer with 6-bytes of pre-padding.
Once authentication is complete, the first message reveals the features supported or required by this node, even if this is a reconnection. Once authentication is complete, the first message reveals the features supported or required by this node, even if this is a reconnection.
[BOLT #9](09-features.md) specifies lists of global and local features. Each feature is generally represented in `globalfeatures` or `localfeatures` 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_. [BOLT #9](09-features.md) specifies lists of global and local features. Each feature is generally represented in `globalfeatures` or `localfeatures` 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_.
Both fields `globalfeatures` and `localfeatures` MUST be padded to bytes with 0s. Both fields `globalfeatures` and `localfeatures` MUST be padded to bytes with 0s.