You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 07-routing-gossip.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -575,6 +575,12 @@ be present, so `must_be_one` is a constant value, and ignored by receivers.
575
575
576
576
## Query Messages
577
577
578
+
Understanding of messages used to be indicated with the `gossip_queries`
579
+
feature bit; now these messages are universally supported, that feature has
580
+
now been slightly repurposed. Not offering this feature means a node is not
581
+
worth querying for gossip: either they do not store the entire gossip map, or
582
+
they are only connected to a single peer (this one).
583
+
578
584
There are several messages which contain a long array of
579
585
`short_channel_id`s (called `encoded_short_ids`) so we include an encoding byte
580
586
which allows for different encoding schemes to be defined in the future, if they
@@ -638,6 +644,7 @@ from `reply_channel_range`.
638
644
#### Requirements
639
645
640
646
The sender:
647
+
- SHOULD NOT send this to a peer which does not offer `gossip_queries`.
641
648
- MUST NOT send `query_short_channel_ids` if it has sent a previous `query_short_channel_ids` to this peer and not received `reply_short_channel_ids_end`.
642
649
- MUST set `chain_hash` to the 32-byte hash that uniquely identifies the chain
643
650
that the `short_channel_id`s refer to.
@@ -778,6 +785,7 @@ This allows querying for channels within specific blocks.
778
785
#### Requirements
779
786
780
787
The sender of `query_channel_range`:
788
+
- SHOULD NOT send this to a peer which does not offer `gossip_queries`.
781
789
- MUST NOT send this if it has sent a previous `query_channel_range` to this peer and not received all `reply_channel_range` replies.
782
790
- MUST set `chain_hash` to the 32-byte hash that uniquely identifies the chain
783
791
that it wants the `reply_channel_range` to refer to
@@ -842,6 +850,8 @@ multiple times to change the gossip from a peer.
842
850
The sender:
843
851
- MUST set `chain_hash` to the 32-byte hash that uniquely identifies the chain
844
852
that it wants the gossip to refer to.
853
+
- If the receiver does not offer `gossip_queries`:
854
+
- SHOULD set `first_timestamp` to 0xFFFFFFFF and `timestamp_range` to 0.
845
855
846
856
The receiver:
847
857
- SHOULD send all gossip messages whose `timestamp` is greater or
0 commit comments