Skip to content

Commit fc687e8

Browse files
rustyrussellniftynei
authored andcommitted
BOLT 9: Remove initial_routing_sync.
This only had an effect when `gossip_queries` was not negotiated, which is now assumed. Signed-off-by: Rusty Russell <[email protected]>
1 parent fce8bab commit fc687e8

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

07-routing-gossip.md

-10
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ To support channel and node discovery, three *gossip messages* are supported:
2828
* [The `node_announcement` Message](#the-node_announcement-message)
2929
* [The `channel_update` Message](#the-channel_update-message)
3030
* [Query Messages](#query-messages)
31-
* [Initial Sync](#initial-sync)
3231
* [Rebroadcasting](#rebroadcasting)
3332
* [HTLC Fees](#htlc-fees)
3433
* [Pruning the Network View](#pruning-the-network-view)
@@ -894,15 +893,6 @@ first few peers, in the assumption that propagation is adequate).
894893
This assumption of adequate propagation does not apply for gossip messages
895894
generated directly by the node itself, so they should ignore filters.
896895

897-
## Initial Sync
898-
899-
If a node requires an initial sync of gossip messages, it will be flagged
900-
in the `init` message, via a feature flag ([BOLT #9](09-features.md#assigned-localfeatures-flags)).
901-
902-
Note that the `initial_routing_sync` feature is overridden (and should
903-
be considered equal to 0) by the `gossip_queries` feature if the
904-
latter is negotiated via `init`.
905-
906896
### Requirements
907897

908898
A node:

09-features.md

-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The Context column decodes as follows:
3333
| Bits | Name | Description | Context | Dependencies | Link |
3434
|-------|-----------------------------------|-----------------------------------------------------------|----------|---------------------------|-----------------------------------------------------------------------|
3535
| 0/1 | `option_data_loss_protect` | ASSUMED | | | |
36-
| 3 | `initial_routing_sync` | Sending node needs a complete routing information dump | I | | [BOLT #7][bolt07-sync] |
3736
| 4/5 | `option_upfront_shutdown_script` | Commits to a shutdown scriptpubkey when opening channel | IN | | [BOLT #2][bolt02-open] |
3837
| 6/7 | `gossip_queries` | Peer has useful gossip to share | | | |
3938
| 8/9 | `var_onion_optin` | ASSUMED | | | |
@@ -79,10 +78,6 @@ above can be found in [BOLT #1: The `init` Message](01-messaging.md#the-init-mes
7978

8079
## Rationale
8180

82-
There is no _even_ bit for `initial_routing_sync`, as there would be little
83-
point: a local node can't determine if a remote node complies, and it must
84-
interpret the flag, as defined in the initial spec.
85-
8681
Note that for feature flags which are available in both the `node_announcement`
8782
and [BOLT 11](11-payment-encoding.md) invoice contexts, the features as set in
8883
the [BOLT 11](11-payment-encoding.md) invoice should override those set in the

0 commit comments

Comments
 (0)