From 30485af1dff992cbc49d9bb000d87d73da37875b Mon Sep 17 00:00:00 2001 From: sstone Date: Tue, 6 Aug 2019 11:40:10 +0200 Subject: [PATCH] Define a feature bit for extended gossip queries --- 07-routing-gossip.md | 2 ++ 09-features.md | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/07-routing-gossip.md b/07-routing-gossip.md index 3f75eba..58d28f8 100644 --- a/07-routing-gossip.md +++ b/07-routing-gossip.md @@ -588,6 +588,8 @@ Query messages can be extended with optional fields that can help reduce the num - timestamp-based filtering of `channel_update` messages: only ask for `channel_update` messages that are newer than the ones you already have. - checksum-based filtering of `channel_update` messages: only ask for `channel_update` messages that carry different information from the ones you already have. +Nodes can signal that they support extended gossip queries with the `gossip_queries_ex` feature bit. + ### The `query_short_channel_ids`/`reply_short_channel_ids_end` Messages 1. type: 261 (`query_short_channel_ids`) (`gossip_queries`) diff --git a/09-features.md b/09-features.md index 9648a3d..7665d8d 100644 --- a/09-features.md +++ b/09-features.md @@ -20,12 +20,13 @@ see [BOLT #1: The `init` Message](01-messaging.md#the-init-message). These flags may only be used in the `init` message: -| Bits | Name | Description | Link | -|------|----------------------------------|---------------------------------------------------------------------------|------------------------------| -| 0/1 | `option_data_loss_protect` | Requires or supports extra `channel_reestablish` fields | [BOLT #2][bolt02-retransmit] | -| 3 | `initial_routing_sync` | Indicates that the sending node needs a complete routing information dump | [BOLT #7][bolt07-sync] | -| 4/5 | `option_upfront_shutdown_script` | Commits to a shutdown scriptpubkey when opening channel | [BOLT #2][bolt02-open] | -| 6/7 | `gossip_queries` | More sophisticated gossip control | [BOLT #7][bolt07-query] | +| Bits | Name | Description | Link | +|-------|----------------------------------|---------------------------------------------------------------------------|------------------------------| +| 0/1 | `option_data_loss_protect` | Requires or supports extra `channel_reestablish` fields | [BOLT #2][bolt02-retransmit] | +| 3 | `initial_routing_sync` | Indicates that the sending node needs a complete routing information dump | [BOLT #7][bolt07-sync] | +| 4/5 | `option_upfront_shutdown_script` | Commits to a shutdown scriptpubkey when opening channel | [BOLT #2][bolt02-open] | +| 6/7 | `gossip_queries` | More sophisticated gossip control | [BOLT #7][bolt07-query] | +| 10/11 | `gossip_queries_ex` | Gossip queries can include additional information | [BOLT #7][bolt07-query] | ## Assigned `globalfeatures` flags @@ -35,7 +36,6 @@ The following `globalfeatures` bits are currently assigned by this specification |------|-------------------|--------------------------------------------------------------------|---------------------------------------| | 8/9 | `var_onion_optin` | This node requires/supports variable-length routing onion payloads | [Routing Onion Specification][bolt04] | - ## Requirements The requirements for receiving specific bits are defined in the linked sections in the table above.