mirror of
https://github.com/lightning/bolts.git
synced 2024-11-19 01:50:03 +01:00
BOLT 7: gossip_query_ex typos. (#673)
* BOLT 7: fix cut & paste typo. This is `reply_channel_range_tlvs`: `query_channel_range_tlvs` is defined above. Somehow this fix got lost in the merge process, and breaks our spec parsing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> * BOLT 7: add missing `encoding_type` field in query_short_channel_ids_tlvs / reply_channel_range_tlvs The implementations have it, and the requirements refer to it, but it's not actually in the description! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> * BOLT 7: clarify specification. As agreed in http://www.erisian.com.au/meetbot/lightning-dev/2019/lightning-dev.2019-08-05-20.03.html, checksums are not encoded as encoding_type + byte, but as a straight array. Referring to them as `*byte` is thus underspecifying them: they are literally `*channel_update_checksums`. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
2afe3559e8
commit
3154157459
@ -603,6 +603,7 @@ Nodes can signal that they support extended gossip queries with the `gossip_quer
|
||||
2. types:
|
||||
1. type: 1 (`query_flags`)
|
||||
2. data:
|
||||
* [`u8`:`encoding_type`]
|
||||
* [`...*byte`:`encoded_query_flags`]
|
||||
|
||||
`encoded_query_flags` is an array of bitfields, one varint per bitfield, one bitfield for each `short_channel_id`. Bits have the following meaning:
|
||||
@ -728,14 +729,15 @@ Though it is possible, it would not be very useful to ask for checksums without
|
||||
* [`len*byte`:`encoded_short_ids`]
|
||||
* [`reply_channel_range_tlvs`:`tlvs`]
|
||||
|
||||
1. tlvs: `query_channel_range_tlvs`
|
||||
1. tlvs: `reply_channel_range_tlvs`
|
||||
2. types:
|
||||
1. type: 1 (`timestamps_tlv`)
|
||||
2. data:
|
||||
* [`u8`:`encoding_type`]
|
||||
* [`...*byte`:`encoded_timestamps`]
|
||||
1. type: 3 (`checksums_tlv`)
|
||||
2. data:
|
||||
* [`...*byte`:`checksums`]
|
||||
* [`...*channel_update_checksums`:`checksums`]
|
||||
|
||||
For a single `channel_update`, timestamps are encoded as:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user